Defining a comment block

If you have suggestions on how to make the game better, post here. Preferred is to discuss the ideas until they mature into something worth implementing.

Defining a comment block

Postby leezer3 on Mon, 28th Sep 2009, 18:44

Defining a comment block may seem like a very simple thing, but it's something I've just realised we're missing a proper implementation for :)
Currently, the accepted norm appears to be adding a pair of semi-colons, and treating everything after those as a comment. This has two major limitations that I can see:
1. It restricts us to using the end of a line- It's not possible to add a comment in the middle of code.
2. It leaves the possibility for the comments to be inadvertantly passed as paramaters to the final statement on the line.

I'd suggest implementing the standard source-code standard for comment blocks, I.E:
Code: Select all
// -Defines the remainder of the current line as a comment
/* -Enclose your comment in between twin backslashes */


Very simple & elegant :)
The only issue I can see is that the .animated file format allows for use of the backslash in formulas. It'd probably be possible to use another of the special characters which aren't in use, but I'm sticking this idea forwards for further input.

Cheers

Chris Lees
leezer3
 
Posts: 33
Joined: Fri, 9th May 2008, 16:14

Return to Suggestion Corner

Who is online

Users browsing this forum: No registered users and 0 guests