Re:Interesting features from various modern programming lang...
by imtringued on Friday November 10, 2017 @09:00AM
(#15669885)
>With regard to implicit names (4), I think I actually prefer writing lambdas with my own variable names, and I particularly like Haskell's syntax for it.
Introducing implicit variable names is my most hated "modern" feature. I still explicitly write down the default name.
The only defensible way to implement this is by making "it" a keyword and allowing you to access the outer scopes with a syntax like "outer.it" the same way some languages support "outer.this" or "outer.super" when you want to explicitly access the parent class of a nested class.
Introducing implicit variable names is my most hated "modern" feature. I still explicitly write down the default name.
The only defensible way to implement this is by making "it" a keyword and allowing you to access the outer scopes with a syntax like "outer.it" the same way some languages support "outer.this" or "outer.super" when you want to explicitly access the parent class of a nested class.