4 ms·
That's 10 minutes where I could be... you know, living my life, man. Everybody knows what + does. You don't have to teach a high schooler that "if A or B" means
by n1ghtm4n 13y ago
That's 10 minutes where I could be... you know, living my life, man. Everybody knows what + does. You don't have to teach a high schooler that "if A or B" means "if either A or B is true". They just get it. But what the heck does "if A || B {}" mean?
- gizmo686 13y agoActually, you do have to teach most high schoolers (actually most people) what "A or B" means. The common usage reads that as "A xor B"
- n1ghtm4n 13y agoA very good point. I still think it's a big win if it makes it 1% easier for new programmers to understand.
- cbhl 13y agoI actually think "and" and "or" make it 1% more difficult for new programmers because it doesn't implicitly warn them about things like short-circuit evaluation and whatnot. "and" and "or" have a lot of nuances that experienced programmers take for granted that a new programmer won't know until they're taught.
- Fistandantilus 13y agoIn English, sure. Not so for Chinese.