3 ms·
> I'm definitely upvoting this, as i think this is very much the right direction (I'm actually working on something similar). C++'s boilerplate is maybe 10th o
by MaulingMonkey 9y ago
> I'm definitely upvoting this, as i think this is very much the right direction (I'm actually working on something similar).
C++'s boilerplate is maybe 10th on my list of major beefs with the language, so to me it seems to have the wrong priorities. Still interesting to see a take on it though.
> 1. using := instead of = is straigh up worse. No way i'd use 2 characters instead of 1 for an operator that common.
Less typoing "==" as "=" and your code still compiling though, and it's ":=" instead of "auto ... =" - so 4 fewer characters.
> 2.i don't think the eventuality of bugs really justifies the repetition of public and private at EVERY SINGLE variable, that's a lot of repetitions
C# got me used to that!