Hacker News new | past | comments | ask | show | jobs | submit login

It seems to me that ideally, if a variable name is so predictable that you can name it by rules, that’d be an opportunity for the language to not require a name.

But in practice $0 and Haskell’s point-free styles can be annoying to read, so maybe what I want is the IDE to insert obvious names.




You still have to say what of the many obvious things you are using here.

Point-free syntax has a different kind of namelessness, where if you have a single thing, you don't have no name it. And the $0 is really a limitation of the language, nobody ever though it was a good thing.


The main case I’m thinking of is “for thing in things” loops. “thing” is an obvious name, but tools would have to understand English to generate it.

Surely Perl programmers think a name like $0 is good, that’s their whole aesthetic.


Hum... Perl programmers are supposed to shift or die.

The $0 syntax screams of somebody that don't use it since the 90's.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: