Conversation
Notices
-
Embed this notice
Alexandre Oliva (lxo@gnusocial.net)'s status on Thursday, 13-Jun-2024 06:35:51 JST Alexandre Oliva it's more modern. IIUC type var { init } initializers were introduced to enable disambiguation of type var(init), but I suppose some feel it's more desirable to embrace obscure novelties than to go for intuitive readability :-/ -
Embed this notice
Elias Mårtenson (loke@functional.cafe)'s status on Thursday, 13-Jun-2024 06:35:52 JST Elias Mårtenson Can someone knowledgeable in C++ tell me why someone would declare a class member like so:
double x { 0.0 };Rather than:
double x = 0.0;These should do the same thing, but surely the second in much more clear?
-
Embed this notice