Re:Interesting features from various modern programming lang...
by marcosdumay on Friday November 10, 2017 @09:04AM
(#15669909)
> Pipeline operator is often superfluous if proper object oriented programming is used.
Well, I have just replied to somebody asking about the differences: https://news.ycombinator.com/item?id=15669886
> Automatic currying is dangerous
On languages that don't enforce numbers of arguments. That's Javascript, Python, and I don't think there's any other.
Re:Interesting features from various modern programming lang...
by wiml on Friday November 10, 2017 @06:06PM
(#15673847)
The "implicit it" is called anaphor in Lisp (though using that term for a programming language feature I think only goes back to the 1990s; the idea itself is older).
(The word "anaphor" here comes from the study of grammar in natural languages.)
Re:Interesting features from various modern programming lang...
by kazinator on Saturday November 11, 2017 @02:32PM
(#15677708)
The usage goes back to Paul Graham and his macros with the implicit it.
Which appear in Arc.
In which this site is developed.
Re:Interesting features from various modern programming lang...
by Sean1708 on Friday November 10, 2017 @07:41AM
(#15669460)
> Automatic currying is dangerous
Why?
Re:Interesting features from various modern programming lang...
by tpxl on Friday November 10, 2017 @08:36AM
(#15669753)
You can accidentally leave out a parameter and end up with a function instead of the result.
Re:Interesting features from various modern programming lang...
by hood_syntax on Friday November 10, 2017 @09:21AM
(#15670002)
That's an issue when there's no type checking, but a lot of languages with currying by default have type systems
"implicit 'it'" is my favorite: strings.filter{ it.length == 5 }
And Cascade operator buttons..hidden=true
Automatic currying is dangerous
Method extensions are not 'new' but nice