Hacker Newsnew | past | comments | ask | show | jobs | submit | more zephyrfalcon's commentslogin

This is satire, right?

...Right?





You don't have to go through all the globals, you just have to get the caller's namespace, which is fairly simple. See e.g. https://stackoverflow.com/a/6618825/27426

For this reason, I think it's not true that this absolutely had to be a language feature rather than a library. A template class written in pure Python could have done the same lookup in its __init__.


That is exactly what I ended up doing:

https://news.ycombinator.com/item?id=43752889


Taylor Swift didn't donate anything to either party. (as far as we know)


So they say, but I'm really not sure what has changed... see https://support.apple.com/en-us/111895 ...?


It's 1912. Most likely they worked in a factory.


The other 90% of students worked in a factory?

Wouldn't that make them factory workers rather than students though?


30% still working on farms.


How does that statement help in parsing:

    According to the top comment, only about 10% of students attended high school at the time.
Were, say, 95% of all students in primary school with another 5% in university or night school courses?


There is definitely a push for it; not all of us think it's an improvement. When I see modern Python code, it looks nothing like the (relatively) clean, smallish and easy-to-understand language that it was 25 years ago. I get it, things change. The language now caters to a different crowd and attracts different people.

But I have often wondered, if someone wants static typing, why not just use a statically typed language?


I would and do, but a lot of existing code (especially ML code) is Python and I find myself having to interface with it. It's not an awful lot of fun, especially when there are no annotations to record what the code expects and what it outputs.


> But I have often wondered, if someone wants static typing, why not just use a statically typed language?

A very high proportion of Python devs aren’t using it for the language, but for the libraries and ecosystem. Also lots of them weren’t the ones who picked it.

Meanwhile, not at least having the kind of autocomplete and documentation that type hints provide is kinda hellish on any project of more than 200 or so lines. The time savings from spotting runtime bugs before they happen is just a bonus.

Personally, I almost never need to add a type hint outside high-level definitions and function/method signatures, so they’re not really in the way even when I’m being pretty thorough with them.


> You need a language that is small yet still complete. Even today, the only languages that really fit that bill are Scheme/Lisp, Tcl, and Forth.

Maybe Io or REBOL fall into this category as well...? Or Logo...


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: