News for hackers. Stuff that matters.
Re:GIL Become Optional in Python 3.13 by fastball on Monday August 12, 2024 @02:31AM (#41221642)
I wouldn't really say Typescript is enforceable, given that the types aren't actually considered at runtime.
Re:GIL Become Optional in Python 3.13 by pyrale on Monday August 12, 2024 @03:23AM (#41221958)
That is the case for most typesystem considered safe, save for introspection use cases. For instance, haskell, a language with strong type guarantees, does erase types for runtime.
Re:GIL Become Optional in Python 3.13 by pjmlp on Monday August 12, 2024 @02:41AM (#41221714)
In fact, people should see Typescript as a linter / bundler tool than a programming language by itself, ignoring the design mistakes of how enums and namespaces came to be.
Re:GIL Become Optional in Python 3.13 by umanwizard on Monday August 12, 2024 @03:34AM (#41222026)
Almost no languages have types considered at runtime.
Re:GIL Become Optional in Python 3.13 by guappa on Monday August 12, 2024 @03:58AM (#41222168)
Well python does, after the famous PEP to pack all types into strings got parked (probably forever).

There's packages to typecheck at runtime, even to check the parameters to a function.