Huh. I did not know you could annotate types like that. Very cool!
@TheJaniable4 жыл бұрын
I wish I knew about this before writing 5 entire projects in Python.
@RicardoSuarezdelValle9 ай бұрын
lol
@harshilrastogi6 жыл бұрын
I can't find the slides at the above-mentioned sources. Can anyone please point me the link?
@IamEchelon6 жыл бұрын
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.
@jonbarker69797 жыл бұрын
print(type(entries)) is how I do it. Why is this better?
@adamcunnington25937 жыл бұрын
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.
@desprit6 жыл бұрын
No it is NOT clear. And yes, you SHOULD care about typing.
@RicardoSuarezdelValle9 ай бұрын
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
@RubenKelevra7 жыл бұрын
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...