3 ms·
I'm not a language designer, but maybe there should be a warning or a compilation error or something, instead of a silent but arbitrary decision. But it gets u
by enriquto 5y ago
I'm not a language designer, but maybe there should be a warning or a compilation error or something, instead of a silent but arbitrary decision. But it gets ugly easily, with three-leter variable names that can be grouped in different ways.
If I designed a new language from 0, I'd like to allow only single letter variable identifers (possibly with unicode sub-indices and modifiers).
- jstx1 5y ago> If I designed a new language from 0, I'd like to allow only single letter variable identifers (possibly with unicode sub-indices and modifiers). In the nicest possible way - this is absolute madness.
- enriquto 5y agoDo you think so? It may seem risky in itself, but I think this would capture many current practices in mathematical notation. The language could aid you to clarify your code. For example, by forcing each variable to be declared explicitly at the beginning of its scope, on a line all by itself. Then the compiler could put a warning if one of these declarations didn't have a comment.
- leephillips 5y agoI like these somewhat crazy ideas. You could get some of this behavior with macros in Julia, probably.