The Dink Network

Reply to Re: SEMICOLONS ARE THE SPAWN OF BEELZEBUB

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
February 19th 2013, 06:52 AM
spike.gif
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:
void hit
{
sp_target(&current_sprite,&enemy_sprite)
playsound(30,21050,4000,&current_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(&current_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.