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 20th 2013, 04:52 AM
goblins.gif
It will cause problems if you put a semicolon on an "if" statement (I think it just ignores the statement in this case). As for not using a semicolon I don't know for sure, but based on the scripts I've looked at in the lost forest romp and the fact that they work, I'm inclined to believe any possible problems would be rare to non-existent. But still, it's also harmless to use semicolons as long as you don't use it on an "if" statement, and it's a good convention for other languages.

So, I don't see anything wrong with using semicolons. However, I also don't see anything wrong with not using them. So do whatever you like. Game Maker which I've also spent a lot of time using has the same arguments going with it's scripting language because it, like DinkC, doesn't require semicolons but simply ignores them when they are there, except for on "if" statements where it will return an error.