While other languages of course have their special syntax, Perl is very extreme in this regard. This is best illustrated by the following diagram of special Perl operators (where most of them are only found and used in Perl):
While other languages of course have their special syntax, Perl is very extreme in this regard. This is best illustrated by the following diagram of special Perl operators (where most of them are only found and used in Perl):
Then look up the Ruby documentation for .. , which is also overloaded to have two different meanings, one that works inside conditionals and one that constructs Range objects when outside of Range objects, which is just as much syntactic sugar as anything perl provides. And the difference between .. and ... is visually subtle, I wonder how many off-by-one errors that operator idiom causes.
I'd like to see a citation for that. My understanding was to allow for simpler nested data structures.
I can't imagine how that could be, unless somehow you mean that "first-class functions require references in Perl 5", which is true only insofar as first-class functions rely on the design concept of references.
If Larry had invented the idea of a reference context (not the most precise term, but I think it's understandable), references would have been unnecessary in Perl 5.
i think perl6 is using a different appoach based on laziness for nested data structures. there are always strings and do blocks which assign and return globs with randomised but unique name(gensym but perls gensym is returns a GLOB reference so you have to write ur own).
reference context == continuation right ?? in sub bar { ... $foo = sub { .... } ... return \$foo}, i think \$foo also captures the lexpad of bar using a single reference to $foos internals. thats all.
otherwise i think one would need continuations like in ruby or scheme or perl6.
Can you trolls at least get something about Perl5 to post about?! (Answer to a possible answer in advance: "What, you post about another language in the same family -- and claim not to be a troll!?")
I'll reference this, regarding language trolling on HN: http://news.ycombinator.com/item?id=963706
Because I'm just not going to be trolled discussing this on HN, again.
I do see that PHP is underrepresented in my list, and I just ran across one of PHP's most confusing idioms the other day. The LHS of list expansion assignment requiring the keyword list(), which looks like a function call. I can't count how many experienced programmers have asked me how this assignment to a function call works, which proves this is an idiom. And the opposite is a perl idiom: some functions in perl can operate as lvalues, like substr.
"The very fact that it's possible to write messy programs in Perl is also what makes it possible to write programs that are cleaner in Perl than they could ever be in a language that attempts to enforce cleanliness."
A claim that higher expressibility in a language (natural or not) doesn't imply better expressibility -- given that the user knows his tools.
(Well, your "argument" could also be taken as "anything that can't be written in standard Python isn't worth to write; that is all the expressiveness needed ever, Amen". Gödel might want to say something about that, but never mind.)
Dillinger(!) is claimed to have said "Bonnie and Clyde gave bank robbing a bad name". You give trolls a bad name.
Wow, can you go through the synopses etc and prove that? :-) [Edit: Please put especial emphasis in showing why Moose is bad.]
That was sad. Why don't you run along and try to "argue" with someone about Emacs/Vi, instead?
Just try to not again start with flaming a language/editor based on a reference to a very different language/editor with a similar name.
Also, try to find something better than outdated ranting based on a claim that a humorous speech shows someone is insane... :-)