Re:Which Programming Languages Are Functional?
by dozzie on Wednesday December 30, 2015 @10:57AM
(#10812529)
Here you go: default variable to pass string argument to many built-in
functions and operators, which typically return their result in the same
variable.
Yes, it took a little longer. No, it didn't took that much longer to leave out plainly invalid and misleading description. No, I didn't need to put corner cases there, exactly the same way as you wouldn't specify corner cases for Yacc to describe what it does.
Re:Which Programming Languages Are Functional?
by tripa on Friday January 01, 2016 @07:08PM
(#10824255)
Ok. $_ isn't trivial to understand, let alone explain. But nobody's claiming that. Well not me at least.
What irked me is that's just about all the author's got to say about Perl in the article. Other languages inherited this "feature" (Ruby anyone?) or equivalents, but no mention of that. Why even mention Perl if he's got nothing (solid) to say about it?
Re:Which Programming Languages Are Functional?
by Mithaldu on Wednesday December 30, 2015 @10:54AM
(#10812515)
I did in the linked comment in roughly the same space as the original description. The only thing that could maybe have been included is the scope restriction afforded by local, but that's a feature available to all variables and not necessary to mention.
I also did not take longer than expected, nor did i leave out any corner cases that affect day-to-day work and am not aware of many of them existing in the first palce.
At the very least, I suspect honesty will compel you to admit that either A: that took you longer than you expected or B: you left out a lot of corner cases, especially when modifying $_ does or does not change the thing it does or does not reference, and how it interacts with local, and, and, and....