logoalt Hacker News

cubefox04/03/20252 repliesview on HN

> Or weak typing. How many languages thought that simplifying strings and integers and other types into "scalar", and making any operation between any operands meaningful, would simplify the language? Yet every single one ended up becoming a total mess instead.

Yet JavaScript and Python are the most widely used programming languages [1]. Which suggests your analysis is mistaken here.

[1] https://www.statista.com/statistics/793628/worldwide-develop...


Replies

throw111122104/03/2025

Python went through a massive effort to add support for type annotations due to user demand.

Similarly, there's great demand for a typed layer on top of Javascript:

- Macromedia: (2000) ActionScript

- Google: (2006) GWT [Compiling Java to JS], and (2011) Dart

- Microsoft: (2012) Typescript

show 1 reply
teddyh04/03/2025

JavaScript is indeed weakly typed, and is widely lampooned and criticized for it¹². But Python has strong typing, and has always had it.

(Both JavaScript and Python have dynamic typing; Python’s type declarations are a form of optional static type checking.)

Do not confuse these concepts.

1. <https://www.destroyallsoftware.com/talks/wat>

2. <https://eqeq.js.org/>

show 2 replies