3 ms·
Frankly, I think that the big problem with C++ (and other larger languages) is the engineers who keep trying to use some minimal subset of it, pointing at the B
by pnathan 15y ago
Frankly, I think that the big problem with C++ (and other larger languages) is the engineers who keep trying to use some minimal subset of it, pointing at the Blub+1 capabilities and screaming about how they can't understand it.
- palish2 15y agoI understand the concepts just fine, thanks. My argument was against the mentality "C++ could be made to do... anything". Sure, it could. But it's a Really Bad Idea. If I had to write a C++ program to do this: data Exp = Const Integer | Plus Exp Exp | Times Exp Exp | Arg1 | Arg2 ... then I would embed Lua + LPeg ( http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html#ex http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html#ex ) and write the parser in that. A simple, readable, and maintainable solution. http://en.wikipedia.org/wiki/Parsing_expression_grammar http://en.wikipedia.org/wiki/Parsing_expression_grammar