3 ms·
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
by astrange 4y ago
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.
- marcosdumay 4y agoYou 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.
- astrange 4y agoThe 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.
- marcosdumay 4y agoHum... Perl programmers are supposed to shift or die. The $0 syntax screams of somebody that don't use it since the 90's.