My most unpopular opinion: Modern C++17 is significantly less safe than C.
-
-
How are references unsafe? Their C equivalent, pointers, can be dereferenced while NULL, and can be changed on a whim to invalid addresses.
-
*const pointers can't be changed.
- 7 more replies
New conversation -
-
-
Compared to C you can not create a null or uninitialized reference. Pointers and references can both dangle but that is a UB common to both.
-
You "can", but it's just via UB. The *only* difference is where the UB formally got invoked tho:
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.