Here's something I've wondered about for a long time. I often find myself writing code like this:
/* do something */ if x==0
/* do something else */ if x==0
It always seems to me that I should be able to get the same result like this:
if x==0 {
/* do something */
/* do something else */
}
But I never do get the same result. Why not? What am I not understanding about the difference?
/* do something */ if x==0
/* do something else */ if x==0
It always seems to me that I should be able to get the same result like this:
if x==0 {
/* do something */
/* do something else */
}
But I never do get the same result. Why not? What am I not understanding about the difference?
Comment