3 ms·
This reminded me of language / library attributes that I've been delighted by over the years ...here's a few: C : - function pointers combined with structs.
by andyidsinga 8y ago
This reminded me of language / library attributes that I've been delighted by over the years ...here's a few:
C :
- function pointers combined with structs.
- Ability to use pointers to go anywhere on the machines address space (think embedded, kernel code etc) and muck with registers, shared memory etc.
C++ :
- smart pointers - shared_ptr and friends. I'm not a big C++ fan in general but when I learned about smart pointers I was really impressed.
Java :
- interfaces - after treading around C++ objects in the 90s, interfaces were a dream
- 'Runnable' interface and Thread class coupled with any object's wait(), notify() and notifyAll() methods.
- generics
Javascript :
- async / await ..once I figured out how this worked i was really impressed.
- object literal syntax. (Perl hashes were also pretty delightful years before - but not quite as much as JS)
Python:
- Iterators and the litany of looping and ranging constructs.