3 ms·
Python's standard library includes many modules for specialised applications and yet it's surprisingly lacking in fundamental data structures and algorithms. Pe
by Silhouette 4y ago
Python's standard library includes many modules for specialised applications and yet it's surprisingly lacking in fundamental data structures and algorithms. Personally I think that's the wrong way round. Simple things like building dicts from different data structures or working with optional values that can be something or None just aren't there and you always seem to end up with some kind of utils.py full of hand-written functions to do these things that everyone writes again every time when they would have been either built into the syntax or a one-liner using the standard library in some other languages.
I agree that the C++ example is (one reason) why modern C++ has jumped the shark.
- moloch-hai 4y agoThat example is not how C++ is used. It would not pass code review.
- xigoi 4y agoWhy is code that wouldn't pass code review part of the language documentation?
- moloch-hai 4y agoWhy are there falsehoods in Wikipedia?
- xigoi 4y agoBecause it's written by random people who may or may not know the topic well. How does that apply?