3 ms·
> 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 nices
by 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.