ID:1846919
 
Applies to:
Status: Open

Issue hasn't been assigned a status value.
for(var/a in my_datum)

It'd be convenient if this behaved as
for(var/a in my_datum.contents)

if a non-atom my_datum has a contents var defined.

Like how "[my_datum]" uses my_datum.name if it's defined, looping through my_datum should use my_datum.contents if it's defined.
It seems weird to give a datum a contents var, as it's not an atom and therefore has no true contents. I doubt many authors would ever do such a thing.
In that case, could there instead be a reserved word for a possible main list of a datum if one so desired? and then have that defaulted to when used in a loop? (same idea as contents i guess, but without needing it to be viewed as anything other than a list)

Edit: By the way, are there numerous cases of this kind of behaviour where "[something]" gets translated to "[something.name]" and so on? If so could someone provide them via a list of something please? :o while i could assume some stuff, i'd like to know it there are some small helpful things like that i'm unaware of.