On Sat, May 09, 2015 at 11:11:07PM +0200, Beni Cherniavsky-Paskin wrote: > This is a serious orthogonality fail. Similar things happen whenever > functions are used. > A lot of things fish uses functions for could better be written as scripts. > (would require fish to prepend a dir with its scripts to PATH). > Why don't we do it? Is it just an optimization?
I addressed the orthogonality fail with fish's man function in a separate message (it is an attempt to have "private" man pages), which see. Other than that, what function do you think would be better as a script and why? Running a script requires a new shell process, so it takes memory and processor resources, so performance optimization is one advantage. There are other advantages too. Functions can share various resources more easily (e.g. unexported variables) than a script running in a separate process. ------------------------------------------------------------------------------ One dashboard for servers and applications across Physical-Virtual-Cloud Widest out-of-the-box monitoring support with 50+ applications Performance metrics, stats and reports that give you Actionable Insights Deep dive visibility with transaction tracing using APM Insight. http://ad.doubleclick.net/ddm/clk/290420510;117567292;y _______________________________________________ Fish-users mailing list Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users