Hacker News new | ask | show | jobs
by mxkopy 1511 days ago
>you need to know everything about C++ in order to use it safely

Well, you should know the libraries that you're using in C++, but I don't think that's any different in Python or Java. Granted, the mental model is more complex in C++ but that's the price you pay for the amount of control you get.

Also, isn't undefined behavior a lot easier to come across in Python since it's dynamically typed?

1 comments

python doesn't have c style undefined behavior. you might get unexpected behavior, but that is very different from undefined behavior which allows the compiler to delete your hard drive and launch a nuke if it feels like it.
Well, import ctypes.

Are you sure you master all language and library changes between versions, even minor ones?

What are the major differences between Python 1.5 and Python 3.10?

Why does it matter how Python 1 worked? Nobody is using that these days. In fact , in 2022 you can probably even get away without knowing python 2 either.
Until you find libraries that were never updated....

Very lucky ones, those that can do their work from scratch using latest version of everything, including the OSes where they get deployed.