>
> I like that part about Go: Semicolons _separate_ statements rather
> than _terminate_ them, so they're completely optional in most cases.
> If you want to cram a bunch of things on one line, nothing is stopping
> you. But the compiler isn't going to come after you if you leave them
> out (most of the time).


Not quite true.  The following semicolons are not optional:
i := 3
for j:= 0; j < i; j++ {
    k:= i - j;
    k -= 5
}

Note that the semicolon is necessary, even if there is also a newline
between statements.
--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info (unsubscribe here): http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to