Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dsemi
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
dsemi
3y ago
Python type annotations were added to be used by an external type checker, so no they are not enforced by the interpreter itself. This was an explicit decision: https://peps.python.org/pep-0484/#non-goals
2.
▲
by
dsemi
3y ago
> I don't see the difference honestly. both are pretty loose. There's a clear difference, in PHP 1 + "1" is 2, in Python it's a TypeError, (and as a bonus, in Javascript 1 + "1" is "11"). The
3.
▲
by
dsemi
3y ago
Would be interested to see how cl-ppcre compares as I've often heard people praise its performance.