Re:PyPy gets funding from Mozilla for Python 3.5 support
by yeukhon on Tuesday August 09, 2016 @10:11PM
(#12259065)
Why add static typing to a language long stood for duck typing? There should really be one way to write in Python.
[ Parent
| on HN ]
Re:PyPy gets funding from Mozilla for Python 3.5 support
by srean on Tuesday August 09, 2016 @11:25PM
(#12259323)
A few things.
i) its not a type checker. It cannot actually ensure type correctness. So may be a more appropriate description would be "a very smart linter".
ii) Its optional
iii) even when switched on it does nothing unless you are explicitly using its features
iv) The "there is only one way to do things in Python" is just vapid marketing. It is not true and has never been true.
Re:PyPy gets funding from Mozilla for Python 3.5 support
by dagw on Wednesday August 10, 2016 @03:38AM
(#12260087)
"there is only one way to do things in Python" is just vapid marketing.
It's not even that, the actual quote is "There should be one, and preferably only one, obvious way to do things". The whole "there is only one way to do it" was a joke response to Perl's "There's more than one way to do it" motto.
Re:PyPy gets funding from Mozilla for Python 3.5 support
by antod on Wednesday August 10, 2016 @06:42AM
(#12260674)
The explicit version: "There should be an obvious way to do something. Ideally only one way will be obvious."
The original version was too implicit. Unless you are Dutch.
Re:PyPy gets funding from Mozilla for Python 3.5 support
by coderzach on Tuesday August 09, 2016 @10:35PM
(#12259153)
I've had great experiences with optional static typing from tools like flow[1] and mypy. I've found you can gain most of the bug catching and readability benefits of static typing, while having the power of dynamic typing when come across a truly dynamic problem.