Python needs a better way to go about doing this because currently this clutters the code up significantly. I would suggest something more Haskell-esque.
The introduction is completely flawed. It's completely clear what the code does - or if it isn't, that has nothing to do with static vs. dynamic types. The whole point is, you shouldn't care what the type is. It's irrelevant; the attributes and methods define the behaviour. Talk about completely missing the point.
Saying this just demonstrates you have never worked with a big enough codebase, just the amount of times I've had to write print type(someUnclearCrap) is worth the strict types
Well, the introduction is bullshit, your ide can show you the definition of everything, if you use pycharm or similar, just a right click away. They just mess up python...
Huh. I did not know you could annotate types like that. Very cool!
I wish I knew about this before writing 5 entire projects in Python.
lol
I can't find the slides at the above-mentioned sources. Can anyone please point me the link?
Python needs a better way to go about doing this because currently this clutters the code up significantly. I would suggest something more Haskell-esque.
print(type(entries)) is how I do it. Why is this better?
The introduction is completely flawed. It's completely clear what the code does - or if it isn't, that has nothing to do with static vs. dynamic types. The whole point is, you shouldn't care what the type is. It's irrelevant; the attributes and methods define the behaviour. Talk about completely missing the point.
No it is NOT clear. And yes, you SHOULD care about typing.
Saying this just demonstrates you have never worked with a big enough codebase, just the amount of times I've had to write print type(someUnclearCrap) is worth the strict types
Well, the introduction is bullshit, your ide can show you the definition of everything, if you use pycharm or similar, just a right click away.
They just mess up python...