ID:913059
 
Applies to:DM Language
Status: Open

Issue hasn't been assigned a status value.
It's nice that I can declare variables like this:
var x, y = 2, turf/z
// instead of this:
var/x
var{x; y=2; turf/z}

But there's an inconsistency that I don't like. The for() loops don't accept "var x". That is, "var[SPACE]x". The for() loops require the slash in there, and they're the only things that do.
for(var/x in 1 to 10) //  works as expected
for(var x in 1 to 10) // doesn't work; inconsistent

Gimme some space.
I second this
support
Bump
(There was a feature request for this previously, but for the life of me I can't find it).

Variables can be defined either in the form of var/obj/o or var obj/o (without a slash preceding the type). However, this is not the case in say, a for loop. It'd be nice to be able to do for (var obj/o in some_list) without needing the slash after the var keyword. I believe this also applies to try/catch as well, requiring the slash.