|
|
|
|
|
by ArkyBeagle
3549 days ago
|
|
You just won't get agreement from me here - string manipulation in 'C' is quite easy. Concatenation operators and the like mostly get in the way. This has nothing to do with design approaches. The str() suite from the standard library is very easy to use safely, if you're careful in your constraints. You do have to think "this is a buffer" and behave accordingly. The resulting code is pretty tedious, but there's no way it takes 3x as long. Throw in the level of control with sprintf() and there's a pretty clear win. What is easier with C++ ( and most scripting languages ) are things like combinators and regexp. |
|