2 ms·
Each design pattern identifies a weakness in the language where it appears. If the language were stronger, the pattern would be either just a core language feat
by ncmncm 6y ago
Each design pattern identifies a weakness in the language where it appears. If the language were stronger, the pattern would be either just a core language feature, or (better) a library component. Languages get stronger by being able to capture more patterns in libraries.
If your C++ code is "so verbose", you are Doing It Wrong, most likely by doing it the old way. C++98 was verbose.
- fsloth 6y agoC++ code as written can be succint but the spec to describe what the code does can be really verbose. So - verbose in terms of the spec which describes what the code actually does and mental chatter I have to do with myself when writing it "should I return a ref or a smart_ptr or a value or should I use move semantics..." whereas in F# it's just a ref and garbage collector will deal with it. So I can skip the mental chatter part.