3 ms·
Many good criticisms, mixed with some bad. Exception safety is achievable (pthread_mutex_lock example) if you wrap resources with RAII classes. If he called t
by Peaker 15y ago
Many good criticisms, mixed with some bad.
Exception safety is achievable (pthread_mutex_lock example) if you wrap resources with RAII classes. If he called this "difficult to use C libraries while retaining exception safety" it would be more accurate.
The iterator criticisms are applicable to C iterators too (represented by pointers or user objects).
The various things `baz = foo->bar(3)` could mean are interesting. Some of them are reasonable, if you assume some sort of consistency. It may make audits hard, but the fact it might use implicit cast converters there should not make it harder to read if you are allowed to make the most basic assumptions about what an automatic cast operator would do.
I enjoyed it, nonetheless.