in reply to Re^2: Sorting, recursion, and tail-call optimizations
in thread Sorting, recursion, and tail-call optimizations
Perhaps not then, though I still think it is to do with the capriciousness of the dwimery that allows (and actually requires), you to supply a bareword for the user sub instead the more normal and rational \&usersub in place of the bare block.
I always use an inline block for sorting because the rules surrounding when you can get away with using a bareword usersub seem to be undocumented and vary according to the phases of the moon as best as I can discern :)
Much the same as I always use a bareblock with map and grep in preference to a undelimited expression, despite it's creating an extra level of scope. It is just much to easy for the significance of that comma separating the code from the list to get lost, especially if the complexity of the expression increases.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Sorting, recursion, and tail-call optimizations
by Limbic~Region (Chancellor) on Jan 06, 2006 at 17:33 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2006 at 17:47 UTC | |
by Limbic~Region (Chancellor) on Jan 06, 2006 at 18:00 UTC | |
by BrowserUk (Patriarch) on Jan 06, 2006 at 18:33 UTC | |
by Limbic~Region (Chancellor) on Jan 06, 2006 at 18:45 UTC | |
| |
by kwaping (Priest) on Jan 06, 2006 at 18:29 UTC | |
by Limbic~Region (Chancellor) on Jan 06, 2006 at 18:34 UTC | |
by kwaping (Priest) on Jan 06, 2006 at 18:36 UTC |