Re:Concise algorithms written in Julia
by res0nat0r on Friday July 09, 2021 @01:27PM
(#27786158)
Do folks normally write code using the Greek alphabet? I totally understand reading/writing math papers in latex, or on paper using the traditional mathematical symbols, but does anyone really want to edit their Julia code in vim and type \scrA<tab> for a variable name? Seems extremely annoying and convoluted vs naming your variables alpha or sigma, etc.
[ Parent
| on HN ]
All the time. Incidentally, I got these unicode α and σ by copy-pasting from tab completion in an open Julia REPL.
Re:Concise algorithms written in Julia
by leephillips on Friday July 09, 2021 @02:38PM
(#27786952)
But I can type α with two keystrokes. “alpha” is five.
Looking up escape codes or cutting and pasting non ascii characters takes much longer than typing 5 letters.
Re:Concise algorithms written in Julia
by leephillips on Friday July 09, 2021 @03:33PM
(#27787616)
> But I can type α with two keystrokes.