This content originally appeared on DEV Community and was authored by Ughur Huseyn
Interpreted languages lack performance for large programs. When created they not meant to be used as today. But they must overcome this issue. For fast execution many alternative JIT implementations and even compilers have been created (V8, PyPy, LuaJIT, Crystal, etc.). But efficient JITter or compiler needs type declarations. Therefore we can see many alternative syntaxes have been created also (Crystal, Cython etc.).
And type declarations also make code readable and editor friendly, they document your code. Scripting languages mainly created for automatic memory managment and productivity. But why did they drop type declaraions completely?!. Today we see almost all of them return type declarations back somehow (Python, PHP, Typescript). Is this "The Another Billion Dollar Mistake"?
Again, We programmers, need types. Not sure?
Javascript -> TypeScript, V8
Python -> Type hints, Cython, PyPy
PHP -> Type declarations, PHP 8 (JIT Compiler)
Ruby -> Crystal
Lua -> LuaJIT
This content originally appeared on DEV Community and was authored by Ughur Huseyn
Ughur Huseyn | Sciencx (2021-10-07T21:12:45+00:00) Programmers need types or “The Another Billion Dollar Mistake”. Retrieved from https://www.scien.cx/2021/10/07/programmers-need-types-or-the-another-billion-dollar-mistake/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.