Conversation
|
I really don't see the issue with having no top level symbol. Naming will always be a result of compromises. If someone truly wishes to write |
|
I think the change I would like instead is to change Of course as of now those would not be accessible in Typst math, but I think it may be sensible to allow the base identifier of a field access to be a single letter in math (the same way the identifier after the period can already be a single letter). @isuffix thoughts? |
|
I think single letter identifiers would be a bad idea. Something like would now presumably be a syntax error. Your examples could (almost) equally well be |
Well, |
|
Fair enough, but I still strongly dislike the idea. |
|
Well, I strongly dislike having things that work like modifiers before the base symbol name. It's the opposite of consistent. |
It's impossible to achieve complete consistency. That's why I mentioned compromises above. And even if you could achieve perfect consistency, that may not necessarily be the most usable option. |
|
I also think single-letter identifiers are probably a bad idea and that @Enivex I can see that the current state can seem no big deal but is there a downside to the proposed change (other than breaking the code of someone that writes |
A single letter can already be interpreted as an identifier, such as |
|
I could be open to allowing However, I am concerned about creating errors in expressions like Another example would be the lambda calculus, where expressions like And while we could recognize Overall, I agree that this could be a better interface for these characters, but I don't think allowing this syntax would be worth the ergonomic price in strictness around single characters and dots. |
|
Thanks for the detailed answer. Since I am the only one in favor of supporting
|
| The `dotless` symbol was converted to a module, | ||
| meaning you can no longer use `dotless` as a shorthand for `dotless.i`. |
There was a problem hiding this comment.
| The `dotless` symbol was converted to a module, | |
| meaning you can no longer use `dotless` as a shorthand for `dotless.i`. | |
| - The `dotless` symbol was converted to a module, | |
| meaning you can no longer use `dotless` as a shorthand for `dotless.i`. |
Additionally, I think this should be in the General Changes section.
This makes more conceptual sense to me, since
dotlesson its own is meaningless.This is a breaking change, so three approvals are necessary.
Note that there is no way to do a deprecation for this, but I don't think anyone was using
dotlesswithout modifiers anyway.