News for hackers. Stuff that matters.
Re:Koto Programming Language by pansa2 on Saturday March 29, 2025 @11:15AM (#43516183)
> not sure if these are checked at compile-time, run-time, or both

It looks like Koto only checks types at run-time. That means its type annotations are essentially shorthand for something like Python's `if not isinstance(...): raise TypeError`.

Re:Koto Programming Language by irh on Saturday March 29, 2025 @03:23PM (#43517878)
Yes that's right, they're checked at runtime (with the option to disable the checks if the performance cost is a concern) and failed checks simply throw exceptions.

The hints aren't used for other purposes at compile time yet, but they could enable some warnings.