octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #57103] Support Unicode mathematical symbols a


From: Andrew Janke
Subject: [Octave-bug-tracker] [bug #57103] Support Unicode mathematical symbols as function and variable names
Date: Wed, 23 Oct 2019 20:50:41 -0400 (EDT)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:69.0) Gecko/20100101 Firefox/69.0

Follow-up Comment #6, bug #57103 (project octave):

This is a really interesting idea. As a software engineer and maintainer, I
hate it. But as a data analyst who sometimes names variables stuff like
"delta_vee" and "sigma_prime", it's really intriguing.

It opens up a bunch of issues with:
a) different Unicode characters that look like each other
b) font support for non-basic-English characters
c) input methods for non-basic-English characters
d) support for source code file encoding detection/configuration in the first
place
e) ugh, that "prime" character looks just like the "transpose" operator or a
single-quote but would be a normal identifier component, and double-prime
looks just like double-quotes
f) same with "mathematical times" and its siblings: unless we introduce syntax
for new operator classes, "A×B" is a single token that's treated as an
identifier, not equivalent to "A × B".
g) Unicode normalization issues
h) accessibility issues
i) weird injection-attack security issues?

Given that Octave tends to support older OS versions (esp. Linux) for a long
time (relevant for b and c), and I don't think we have anyone with enough
Unicode expertise to properly define the character classes that would be
appropriate to use for identifiers etc., I suspect that doing this right now
would just open a big bag of hurt. But it's sure interesting to think about
for the future.

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?57103>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]