Yeah I agree with you unicode was added for better readability of code. My question is can I write something like this
in Rust language with some font ligature as per this
reddit post
. If I was a mathematician I would say Julia code is very close to mathematical representation.
1 Like
Rust identifier grammar: Identifiers - The Rust Reference
which means that an identifier must start with a member of the Unicode lexical class XID_START and may be followed by members of Unicode lexical class XID_CONTINUE. Those are summarized here: UAX #31: Unicode Identifiers and Syntax
Go does similarly. It restricts an identifier to start with _ or a Unicode letter class followed by _, Unicode letters, or Unicode digits. The Go Programming Language Specification - The Go Programming Language
Julia is more lenient about which classes may be within identifiers Variables · The Julia Language. Your code apparently uses an integral sign as a function name, but the integral symbol is in the Unicode math symbols class. You couldn’t do that in Rust or Go, or probably most any other language that supports Unicode in identifiers.
1 Like