Hacker News new | ask | show | jobs
by Lazare 3886 days ago
Speaking as someone who has done quite a lot of work using languages with terse lambda syntax...

...that's just not ever an issue.

1 comments

i think the poster thinks that with the fat arrow definition, name becomes an implicitly called function wherever it is used. I wouldn't like that either.

but, I dont know if thats really the case though (I dont know ceylon). I think that fat arrow line would just become a no op instead, creating a lambda and throwing it away immediately ("name" being the param name in the lambda and nothing more).

It's just a getter. Lots of languages have getters.
Ah that makes sense, thanks. I missed the implicit "we're in a class definition" in the original post.