(Enhancement)
Hello.
I think that semicolon should be at the end of each instruction.
Right now, we can omit the semicolon on the last instruction in blocks.
For instance, this code compile and execute:
#!/usr/bin/env crack
import crack.io cout;
cout `Hello World!\n`;
if(true) {
cout `Hello World!\n`
}
else {
cout `Hello World!\n`
}
cout `Hello World!\n`
Three semicolons are missing.
I think this is bad because if we extend the block, we are obligated to add the
semicolon.
Consequently, I think that semicolon should be an obligation, even on the last
instruction of a block.
An alternative would be to use newlines instead of semicolons (like in Python).
Thanks.
Original issue reported on code.google.com by boua...@gmail.com on 8 Dec 2011 at 10:02
Original issue reported on code.google.com by
boua...@gmail.com
on 8 Dec 2011 at 10:02