3 ms·
Sometimes I feel like we need an analog to javascript/typescript. Ptypethon if you will.
by terminalbraid 2y ago
Sometimes I feel like we need an analog to javascript/typescript. Ptypethon if you will.
- ansgri 2y agoAbsolutely. The main problem with python typing is that checking types is optional. A dialect with mandatory types (with inference) and runtime/load-time checking would be great.
- IshKebab 2y agoChecking types is optional with Typescript too. We don't need another type annotation syntax for Python. The existing one is fine.
- maleldil 2y agoUse pyright in strict mode, then. If you really want runtime checking, you can Pydantic's validation decorator, typeguard or beartype. Current typed python is much better than people give it credit. You just have to use it properly.