Why I'm Not a Computer Programmer

I came across this enlightening passage in the user's guide to Stata, a statistical program I use at work:

In fact, Stata has two sets of double-quote characters, of which "" is one. The other is '""' and they work the same way as "".

No rational user would use '""' instead of "", but smart programmers do use them. Why is '"example"' better than "example", '"'answ'"' better than "'answ'" and '"yes"' better than "yes"? The answer is that only '"'answ'"' is better than "'answ'"; '"example"' and '"yes"' are no better -- and no worse -- than "example" and "yes".

Comments

Popular Posts