logoalt Hacker News

skolostoday at 5:29 PM1 replyview on HN

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?


Replies

UncleEntitytoday at 6:28 PM

I 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.