Hacker News new | ask | show | jobs
by sixbrx 3886 days ago
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).

1 comments

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.