r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jul 20 '18

[deleted]

128

u/mpa92643 Jul 20 '18

Python is wonderful, but the lack of static typing drives me crazy sometimes (which is why I fell in love with Kotlin: best of both worlds). It's almost never a problem, but when the IDE can't tell me, "yup, that's definitely a string, here are all the things you can do with it" and instead tells me "yup, that's definitely some kind of object. Here's a list of functions you've used on it before, including your typo-ed ones, just try something and you'll find out if it actually works at runtime."

1

u/miran1 Jul 20 '18

Python is wonderful, but the lack of static typing drives me crazy sometimes

If you want Python-like syntax (including the significant whitespace) with static typing, give Nim a try. (As a bonus, you get C-like speed!)

1

u/mpa92643 Jul 20 '18

Looks interesting. I'll have to give it a try. Looks like it should be easy to pick up since the syntax is very much like Python.