C
Chris Dollin
Dan said:Which is precisely what makes unions and structures completely different
things, despite any *superficial* similarities.
Just because there's an important difference doesn't make them
"completely different".
If structures and unions are "completely different", what are you
left with to express, say, the difference between ints and structures?
Unions and functions? Types and statements?
And of course they're syntactically almost identical.
Which means exactly zilch. if and while are also syntactically almost
identical, yet they are still completely different things.
You must have some awsomely picky notion of sameness, then, since
both if [1] and while are semantically very similar things -
You must have some awsomely lax notion of sameness, if the if and while
statements look semantically very similar to you. To me, the only
statements semantically close to while are do and for.
I don't weight the presence or absence of iteration as highly as you
do, and I rate the similarity of treatment of subcomponents more than
you do. Why is why I pointed out you could improve your argument by
picking `switch` instead of `if`.
Then again, a wheel mouse and a wheelbarrow might be semantically very
similar things to you...
They're much more similar than, say, a wheel mouse and a photon, or
a wheelbarrow and _Twelveth Night_, or a house and being arrested,
or a headache and a telephone.
[Just because I'm different from you doesn't mean I'm *completely*
different from you.]