7 ms·
Looking at examples I see: ``` c = Sector(radius, start = 180°, end = 270°).translate(y = radius); ``` Programming language that requires (maybe it does not r
by skolos 10mo ago
Looking at examples I see:
```
c = Sector(radius, start = 180°, end = 270°).translate(y = radius);
```
Programming language that requires (maybe it does not require, but then example is not good) to type degrees. Or maybe it is not designed to be typed and rather ai generated?
- UncleEntity 10mo agoI saw another example where they had 'mm' as well so I'm guessing that's all part of the type system as postfix attributes? Poked around in the docs a bit but didn't see a grammar so, dunno... I can only guess it does automatic type conversion if you only type the numbers without the qualifier.
- WilstonOreo 10mo agoYes, we use units as postfix attributes. The grammar is here, in case you are interested: https://codeberg.org/microcad/microcad/src/branch/main/lang/grammar.pest https://codeberg.org/microcad/microcad/src/branch/main/lang/...
- addaon 10mo agoopt-shift-8