I wonder what does the Go team think about allowing Math Symbols in identifiers?
My need is to simplify my quantum computing code for tensor products: ``` func ⊗(ops *tensor.Dense) *tensor.Dense {...} cnot := ⊗(one, one, σX) + ... ``` As shown above, the Pauli matrix σX works nicely, but the product ⊗ unfortunately doesn't. One drawback is that people may worry this will make code less readable. But I think anyone who has overcome the math in any quantum textbook would find allowing Math Symbols actually improving readability due to tighter adherence to papers! In particular, I propose to edit the Go spec's source code representation <https://go.dev/ref/spec#Source_code_representation> section to ``` Go treats all characters in any of the Letter categories Lu, Ll, Lt, Lm, Lo, Sm as Unicode letters. ``` (the Sm <Math Symbol> category is added) There's this related issue <https://github.com/golang/go/issues/41707>, but that issue was more of a question than a proposal. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/29798b06-358e-4c15-acdb-8b3e9aa7954en%40googlegroups.com.