@rayman22201 indeed I wasn't thinking of anything that isn't type safe or 
outside of Nim's phylosophy. What @mratsim did above (1st post) with templates 
and the JSON module is what got me wondering, since it's actually not that far 
away from behaving like a python dictionary, from the POV of the user.
    
    
    # Correction: it's actually closer to the behavior of GDScript dictionaries,
    # since afaik python doesn't allow creating dict fields like:
    a.foo = 10
    
    # only like:
    a["foo"] = 10
    
    
    Run

Reply via email to