ID:1958669
 
Not Feasible
Applies to:DM Language
Status: Not Feasible

Implementing this feature is not possible now or in the foreseeable future
I have no idea how deeply entrenched this is in the language, but I'd like to see some way of disabling this.

When I write code I tend to write it like this to maximize readability:

/world
{
name = "";
hub = "";
hub_password = "";
maxx = 1;
maxy = 1;
maxz = 1;
view = 10;
fps = 40;
}

/world/New()
{
map.Initialize();

src.maxx = round(map.GetMaxx() + map.MAP_BOUNDS);
src.maxy = round(map.GetMaxy() + map.MAP_BOUNDS);

. = ..();
spawn (1) { world.log << "Loaded, [locate(world.maxx, world.maxy, world.maxz)]"; }
}

/world/Del()
{
return ..();
}


It sounds to me that the use of brackets braces removes the need for full indentation checking.

If possible I'd like to be able to have the compiler rely on my use of brackets braces rather than the amount of whitespace I happen to have used on a particular line. IMO this produces clear & readable code vs. the spaghetti I feel it sometimes turns into without the use of brackets braces.

Note that my code compiles correctly in the above example and I think I'm the only one that does this (so far), so please don't consider this high priority, but if it's easy to disable the code that checks indentation (and not the code that checks using brackets braces) with an if-statement it would be nice to see a compiler option for it (stored in the .dme file, a global setting would force me to disable it every time I want to compile someone else's code).

Thanks.
Note: I'm probably still using the brackets braces inconsistently. If this is possible & implemented then I'm expecting errors, but I want those errors. The point is to force a stricter way of typing, but not to manage whitespace for me.
You mean braces. Brackets are square.

Turning off the whitespace stuff would be rather difficult. The concept that an indentation equals a left brace, and de-indentation is a right brace, is actually built into the parser somewhere.
Oops, got them mixed up...

Alright, I expected as much. Doesn't hurt to try. :)
Nadrew resolved issue (Not Feasible)