It is well known that languages with weak typing are weaker than strong-typed ones. People fight on the matter so often and so passionately like the zealots of the past. I would like to open the wound again and bring a bit of clarity why and, more importantly, how we have to fight those battles from now on.
Let’s compare what we have in Java with other languages and feel the difference. Pragmatic one. I will show a bit of pain which, nowadays, a compiler takes away from a developer so the latter can “safely” code. Also I will try to answer the questions “which one is better” and “where are we going”.
It is always fun to see how little you know and how much is behind the curtains.
21. Синтаксис – это просто
(е)BNF
JLS параграф #18 (а так же параграфы #2-4)
Грамматики языков примерно равнозначны
• Haskell ~40+40 правил
• Scala ~30+60 правил
• Java ~100 правил
26. Анамнез
Как можно до сих пор использовать X, когда есть *** Y
Люди использующие X должны гореть в аду
Слаботипизированые языки, типа X, должны исчезнуть
ЛОЛ!!! Прикинь на X сделали ..., нет чтобы взять *** Y
Ад, смотри, че пишут на X. На *** Y, я бы за такое убивал
(***) – теплый, ламповый, богоугодно-кошерно-православный, современный, быстрый, безбажный, богатый и популярный