News for hackers. Stuff that matters.
Re:An Overview of the Starlark Language by maleldil on Thursday June 06, 2024 @08:18AM (#40596531)
The idea is to have gradual typing, like Python does. Most annotations in Python have no impact on runtime (e.g. parameter types aren't checked), but they are still valuable for external tools to perform type checking. A program with the wrong types will still run, but you will get type errors from the checker.

One difference is that Python specifies the type system in PEPs (basically Python's RFCs), while OP didn't ask for that here. This would mean whatever tool is implemented would define the type system.

Re:An Overview of the Starlark Language by Turskarama on Friday June 07, 2024 @11:46PM (#40615119)
OP did also say "They wouldn't even have to be specified", which is the big difference here needed for a type checker to actually use them over comments.