131 reputation
4
bio website dougtreadwell.com
location Sacramento, CA
age 31
visits member for 3 years, 2 months
seen Jan 30 at 17:03
College student (CS, bio, business). Web developer.

Nov
29
comment Why is scanf called scanf? (Same for printf.)
From dictionary.com definition 3 of scan: to peer out at or observe repeatedly or sweepingly, as a large expanse; survey.
Nov
29
comment Why is scanf called scanf? (Same for printf.)
I was actually wondering if there was a sight-sense-equivalent to "listen". We can "hear" but also "listen", we can "read" but as far as I know there is no word for "wait for someone to write something and then read it". Perhaps scan is this word.
Nov
29
revised Why is scanf called scanf? (Same for printf.)
Expanded the question.
Nov
29
comment Why is scanf called scanf? (Same for printf.)
Nice. Do you have any idea if this was something considered by the creator of the C language or a parent language, or is this just something that makes sense? Also, why do you think some languages use print instead of write or display?
Nov
29
asked Why is scanf called scanf? (Same for printf.)
Sep
15
comment I don't understand the arguments against operator overloading
@sbi Then make an operator "cross*", "dot*", etc. However, in cases like this I'm all for using functions like dot_product(x, y). If there's some reasonable and common interpretation of an operator though, why not use it? For example, multiplying complex numbers, indefinite length integers, decimals, etc. should all be the same operator. Concatenation of string-like things should use the same operator. Indexing into any collection should use the same operator, etc.
Sep
15
awarded  Editor
Sep
13
awarded  Student
Sep
13
comment I don't understand the arguments against operator overloading
This is just an argument for having more operators, allowing more flexible overloading, such as . for dot product and x for cross product or even the words "dot" and "cross" (see Perl's eq, lt, gt, for examples of letters as operators).
Sep
13
awarded  Supporter
Sep
13
awarded  Autobiographer