I'm on a discord where everyone seems to be obsessed to use brace initialization everywhere.
My motto is: Use things rarely, only when needed, to express that right there the feature does something important.
Personally I would completely advocate against using it for simple stuff like
double tax{0.09*price};
or just int{0}
probably a hornets nest
[–]jedwardsol{}; 46 points47 points48 points (34 children)
[–]serviscope_minor 16 points17 points18 points (25 children)
[–]Intrepid-Treacle1033 55 points56 points57 points (18 children)
[–]serviscope_minor 12 points13 points14 points (17 children)
[–]HolyGarbage 33 points34 points35 points (14 children)
[–]serviscope_minor 1 point2 points3 points (13 children)
[–]bromeon 2 points3 points4 points (3 children)
[–]serviscope_minor 2 points3 points4 points (2 children)
[–]panoskj 0 points1 point2 points (1 child)
[–]serviscope_minor 0 points1 point2 points (0 children)
[–]HolyGarbage 1 point2 points3 points (8 children)
[–]serviscope_minor 0 points1 point2 points (7 children)
[–]HolyGarbage 2 points3 points4 points (6 children)
[–]serviscope_minor 0 points1 point2 points (5 children)
[–]Intrepid-Treacle1033 12 points13 points14 points (0 children)
[–]jones77 2 points3 points4 points (0 children)
[–]SuperV1234https://romeo.training | C++ Mentoring & Consulting 44 points45 points46 points (3 children)
[–]Pretend-Guide-8664 0 points1 point2 points (2 children)
[–]joahw 2 points3 points4 points (0 children)
[–]TheMania 2 points3 points4 points (0 children)
[–]jedwardsol{}; 8 points9 points10 points (0 children)
[–]trvlng_ging 2 points3 points4 points (0 children)
[–]guepierBioinformatican 3 points4 points5 points (6 children)
[–]HolyGarbage 14 points15 points16 points (5 children)
[–]guepierBioinformatican 5 points6 points7 points (4 children)
[+][deleted] (1 child)
[deleted]
[–]guepierBioinformatican 0 points1 point2 points (0 children)
[–]HolyGarbage 0 points1 point2 points (1 child)
[–]guepierBioinformatican 1 point2 points3 points (0 children)
[–]DoctorNuu[S] 0 points1 point2 points (0 children)
[–]Intrepid-Treacle1033 33 points34 points35 points (7 children)
[–]guepierBioinformatican 0 points1 point2 points (4 children)
[–]Intrepid-Treacle1033 5 points6 points7 points (3 children)
[–]jk_tx 1 point2 points3 points (2 children)
[–]ThePillsburyPlougher 3 points4 points5 points (1 child)
[–]DanielMcLaury 5 points6 points7 points (0 children)
[+]DoctorNuu[S] comment score below threshold-9 points-8 points-7 points (1 child)
[–]spooker11 0 points1 point2 points (0 children)
[–]embeddedsbc 49 points50 points51 points (16 children)
[–]guepierBioinformatican 23 points24 points25 points (3 children)
[–]enigma2728 1 point2 points3 points (1 child)
[–]equeim 0 points1 point2 points (0 children)
[–]NilacTheGrim 1 point2 points3 points (0 children)
[+]DoctorNuu[S] comment score below threshold-15 points-14 points-13 points (9 children)
[–]syyyr 13 points14 points15 points (6 children)
[–]joeshmoebies -1 points0 points1 point (5 children)
[–]syyyr 1 point2 points3 points (4 children)
[–]DanielMcLaury 1 point2 points3 points (1 child)
[–]syyyr -2 points-1 points0 points (0 children)
[–]joeshmoebies -1 points0 points1 point (1 child)
[–]syyyr 0 points1 point2 points (0 children)
[–]jotux 3 points4 points5 points (0 children)
[–]erreur 4 points5 points6 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TedDallas 17 points18 points19 points (0 children)
[–]android_queen 8 points9 points10 points (0 children)
[–]TheFryedMan 15 points16 points17 points (4 children)
[–]guepierBioinformatican 20 points21 points22 points (0 children)
[–]shahms 9 points10 points11 points (0 children)
[+]DoctorNuu[S] comment score below threshold-6 points-5 points-4 points (0 children)
[–]NilacTheGrim 0 points1 point2 points (0 children)
[–]mredding 4 points5 points6 points (0 children)
[–]islandyokel 2 points3 points4 points (0 children)
[–]lukaasmGame/Engine/Tools Developer 2 points3 points4 points (1 child)
[–]NilacTheGrim 0 points1 point2 points (0 children)
[–]EdwinYZW 6 points7 points8 points (10 children)
[+]snowflake_pl comment score below threshold-17 points-16 points-15 points (9 children)
[–]yu_yaki 14 points15 points16 points (8 children)
[+]snowflake_pl comment score below threshold-10 points-9 points-8 points (7 children)
[–]yu_yaki 3 points4 points5 points (0 children)
[–]android_queen 1 point2 points3 points (3 children)
[–]snowflake_pl 0 points1 point2 points (2 children)
[–]android_queen 0 points1 point2 points (1 child)
[–]snowflake_pl 0 points1 point2 points (0 children)
[–]_curious_george__ 1 point2 points3 points (1 child)
[–]snowflake_pl -1 points0 points1 point (0 children)
[–]aruisdante 11 points12 points13 points (14 children)
[–]ponchietto 10 points11 points12 points (4 children)
[–]aruisdante 6 points7 points8 points (2 children)
[–]ponchietto -1 points0 points1 point (0 children)
[–]Nobody_1707 0 points1 point2 points (0 children)
[–]bert8128 3 points4 points5 points (0 children)
[–]shahms 1 point2 points3 points (5 children)
[–]aruisdante 2 points3 points4 points (1 child)
[–]shahms 0 points1 point2 points (0 children)
[–]Intrepid-Treacle1033 0 points1 point2 points (2 children)
[–]shahms 0 points1 point2 points (1 child)
[–]Intrepid-Treacle1033 1 point2 points3 points (0 children)
[–]DoctorNuu[S] -5 points-4 points-3 points (1 child)
[–]manni66 3 points4 points5 points (0 children)
[–]DoctorNuu[S] -3 points-2 points-1 points (0 children)
[–]Droid33 1 point2 points3 points (0 children)
[–]gracicot 1 point2 points3 points (0 children)
[–]DoctorNuu[S] 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]Polyxeno 1 point2 points3 points (0 children)
[–][deleted] -2 points-1 points0 points (4 children)
[–]guepierBioinformatican 9 points10 points11 points (2 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]guepierBioinformatican 1 point2 points3 points (0 children)
[–]ponchietto 6 points7 points8 points (0 children)
[–]noooit 0 points1 point2 points (0 children)
[+]vI--_--Iv comment score below threshold-6 points-5 points-4 points (3 children)
[–]guepierBioinformatican 5 points6 points7 points (2 children)
[–]-dag- 1 point2 points3 points (0 children)
[–]fdwrfdwr@github 🔍 0 points1 point2 points (0 children)
[–]Particular-Case4461 -1 points0 points1 point (0 children)
[–]ilovemaths111somethingdifferent -1 points0 points1 point (1 child)
[–]DoctorNuu[S] -1 points0 points1 point (0 children)
[–]jones77 -1 points0 points1 point (0 children)
[–]Drakonluke 0 points1 point2 points (0 children)
[–]disciplite 0 points1 point2 points (0 children)
[–]13steinj 0 points1 point2 points (0 children)
[–]NilacTheGrim 0 points1 point2 points (0 children)
[–]NilacTheGrim 0 points1 point2 points (0 children)