-
Notifications
You must be signed in to change notification settings - Fork 231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add interpunct (·) as a keyword for dot product, etc. #3584
base: development
Are you sure you want to change the base?
Conversation
A couple of questions:
|
Also, this doesn't need to happen right now, but |
The problem with those two is that they're in with a bunch of characters that I think are definitely alphabetic: i1 : apply(splice(150..160,180..190), x -> ascii {195, x})
o1 = (Ö, ×, Ø, Ù, Ú, Û, Ü, Ý, Þ, ß, à, ô, õ, ö, ÷, ø, ù, ú, û, ü, ý, þ) I'm not sure which is more important -- allowing characters like à in symbol names or × and as ÷ as keywords.
From what I understand from Wikipedia, since A0 is between 80 and 7FF (and can be represented in 11 bits), it gets encoded in two bytes. The first byte is 110 followed by the first 5 bits, and the second byte is 10 followed by the last 6 bits. In this case, A0 -> 00010100000, and so the first byte is 11000010, or 194. |
Can't we single out those specific characters rather than the whole range? |
tangentially related, while I was testing this:
Clearly the second error message is incorrect. (edited: and yes it's a moot point because can't create a new symbol if it's protected anyway.) This can be traced back to
the second def of getglobalsym is missing the line about invalid symbol. |
also, I'm confused about
first dictionary listed in |
Instead of just characters whose first byte is 226, we add 194 and a couple (multiplication/division symbols) that start w/ 195.
We definitely can! I've pushed an updated version with support for this. |
For this to work, we no longer count unicode characters beginning with 194 as alphabetic (just like how we don't count characters beginning with 226 as alphabetic). These are the "Latin-1 Punctuation and Symbols".
So afterwards, we can use this new keyword to define things like dot products without having to worry about surrounding it with spaces:
Closes: #3434