3 ms·
> sqrt x √x Not at all a fan of using unescaped character sequences to represent non-latin characters. Ultimately, this leads to situations where you have to r
by abdullahkhalids 4y ago
> sqrt x √x
Not at all a fan of using unescaped character sequences to represent non-latin characters. Ultimately, this leads to situations where you have to resort to some hack to write something that coincides with one of these special names.
Not to mention, this restricts extending the language for special use cases. Suddenly, you discover that you have to throw away the entire thing and resort to a math-typographically-complete language like Latex to write what you want to write.
- deleted 4y ago[deleted]
- vore 4y agoIt looks like if you wanted to write a literal "sqrt" you can just type: s q r t but it is kind of nasty.
- anamexis 4y agoYou can also quote text. This works: "sqrt"
- abdullahkhalids 4y agoQuoting something renders it in English font. If s,q,r,t are variables they should be rendered in math font.
- taeric 4y agoIn general, I agree with you. However, I'm somewhat torn here, as the point is for ease it typing math. It already has an allowance where what you type is not necessarily the same characters that will get rendered. Consider the example the page loads with "sum_(i=1)^n i^3=((n(n+1))/2)^2". Some of those parens are dropped entirely. Some are changed into taller versions. The + is not the same as the \plus sign that is rendered. So, yes, it is a restriction that comes with some tradeoffs. My gut is that this is probably fine for the vast majority of use cases, though. Such that it was probably the right call.
- deleted 4y ago[deleted]