This should not be an argument against language constructs which make languages more expressive, but there seems to be a trend where as languages move toward the functional end of the spectrum, they take on more and more terse and cryptic syntactical structures.
I've always felt that good code should read like a book. This can be reconciled with prefix notation, but not with overloading odd characters as operators.
<- 2
easier to read than return 2
There are many more examples in the code, but I generally found the PHP code MUCH easier to read, and I don't know PHP very well. It could be that I'm biased towards C-like languages, but I doubt it; words are a lot easier to read than arbitrary symbols. ^ 2
since that is what is used in Smalltalk, but the left arrow makes me think I am missing what it should point to. 2
assuming you're at the end of a function. Coffeescript is the same iirc.People are creating new language in good faith and they want their language to look nice. I don't think anyone can disagree on that. The problem is that the aspect of the maintability of the code is overlooked in the process of the creation. When you overlook this aspect it may not hurt you in the short term, but it hurts in the long term. It may be nice for you to code something in a way now, but everyone that will have to maintain your code may not find it nice to read.