Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> The Python problem is that you cannot reuse the same function name easily for different types. Hence instead of creating one abstraction across many different types you need to invent all these different names which can be hard to guess. In Julia there are often far fewer core concepts to learn which can be re-applied in far more ways.

At least there's `functools.singledispatch` in the standard library. There's apparently also multiple dispatch libraries. I've never used either, duck typing with some try/except (and some isinstance) has served me well so far, but I agree it's not as clean.

> There are not like 4 different ways of doing it.

Yet.

> Package management and environment management is much simpler and elegantly done.

Yeah, it's a nightmare in Python. After setting up projects dozens of times now I still don't grok it.



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

Search: