5 ms·
It's legal Julia. Julia editors or VS Code with the Julia plugin support LaTeX commands and will perform autocompletion and convert it to the unicode character
by pa7x1 6y ago
It's legal Julia.
Julia editors or VS Code with the Julia plugin support LaTeX commands and will perform autocompletion and convert it to the unicode character.
For example, if you write \nabla it will offer autocompletion and write ∇.
I think it's a neat feature and makes a lot of sense in scientific computing contexts but I feel I wouldn't like a code-base that abuses it too much. Sprinkled here and there can help make code more readable, succinct and pleasant.
- st1x7 6y ago> but I feel I wouldn't like a code-base that abuses it too much This is why I think it was a poor design choice to include the feature and actively encourage its use. The benefit of potentially more succint code is far outweighed by having to look with a codebase written entirely in Greek and there's no way to enforce moderation.
- kescobo 6y agoStyle guide for the base language is to generally stick to ascii, and many of the big packages do that too. It's really nice in examples, analysis scripts and the like though.
- pa7x1 6y agoIt's impossible to impose moderation in any language and you don't need unicode characters to write stupid code. Java programmers were writing HelloWorldFactory classes way before Julia existed.
- mcv 6y agoI think it's great for mathematicians, but I shudder to think what some Scala library builders might do if they get there hands on this.