C vs C++ vs Lisp (156)

48 Name: 42 : 2008-07-13 23:09 ID:aNYkIZ6Y

I did a quick search, and found myself doing a lot of this:

if (strchr(s+1,'#')) { ... }

Your C2.0 with a native string type would have be write this:

if (strchr(s,'#',1)) { ... }

Not necessarily a small change, but certainly not a reduction in arguments. Things like strncmp() would double in argument-count- can you imagine calling a string-function with 5 arguments and not finding an error?

This thread has been closed. You cannot post in this thread any longer.