Reply to Re: SEMICOLONS ARE THE SPAWN OF BEELZEBUB
If you don't have an account, just leave the password field blank.
Just a colourful expression, sorry; I was feeling kind of restless.
It's as you say, they're [totally] worthless: imagine the amount of typing saved if you never wrote them in the first place... They also waste disk space and uglify scripts, although the former is negligible in this day and the latter is kind of subjective.
I originally intended to write a post about all the stuff that's needless in DinkC, although semicolons are by far the most glaring one. The ( void ) part in procedure titles is also totally unneeded, and interestingly, wrapping a procedure in brackets doesn't do much of anything.* For example, the following works perfectly fine:
* Brackets are useful for a few reasons though, so I don't really advocate not having them.
It's as you say, they're [totally] worthless: imagine the amount of typing saved if you never wrote them in the first place... They also waste disk space and uglify scripts, although the former is negligible in this day and the latter is kind of subjective.
I originally intended to write a post about all the stuff that's needless in DinkC, although semicolons are by far the most glaring one. The ( void ) part in procedure titles is also totally unneeded, and interestingly, wrapping a procedure in brackets doesn't do much of anything.* For example, the following works perfectly fine:
void hit { sp_target(¤t_sprite,&enemy_sprite) playsound(30,21050,4000,¤t_sprite,0) //lock on to the guy who just hit us //playsound } say("I laugh at your foolish brackets, silly pillbug!",1)(As an aside, sp_target(¤t_sprite,&enemy_sprite) is needless in that example, because enemies will automatically target &enemy_sprite.)
* Brackets are useful for a few reasons though, so I don't really advocate not having them.