3 ms·
> Or use a language where '-' is allowed in identifiers. I have been a little obsessed with this question for a long time, and my interest in the LISP family o
by ericrannaud 15y ago
> Or use a language where '-' is allowed in identifiers.
I have been a little obsessed with this question for a long time, and my interest in the LISP family of languages was in part driven by the use of '-'. This should have been a trivial consideration though. A keymap fix seems rather more logical than a change of language.
I agree that being able to type code quickly and conveniently is important. We only have so much time, while we have so much code to write.
- dkersten 15y agoWell I didn't seriously mean that one should switch language to type faster, just that the "problem" does not exist in languages that allow '-' in identifiers and that I feel '-' also looks a lot more natural too. I personally write a lot of C++ and Python code, neither of which allow '-' in identifiers, but I often wish they did (and would happily give up the ability to omit whitespace around operators) and while we're at it, why not allow + ! * and ? too. Having said that, I'm all for switching languages (if your work allows it - I totally understand that some people won't have that choice) if it speeds up your development in some way.