I just discovered Neon and love the way it works. Especially, I love the notion of entity.
Now, I have a question about the supported syntax inside an Entity.
I've noticed that this is OK:
entity0: Column(name=Homer, phones=[ home: 555-6528, work: 555-7334 ])
This is ok too:
entity: Column(
name: Homer
phones: [ home: 555-6528, work: 555-7334 ]
)
But this yields what I would deem to be an unexpected result:
entity2: Column(
name: Homer
phones:
home: 555-6528
work: 555-7334
)
In the attributes array, "home" and "work" are at the same level as "name" and "phones". I would have expected those keys to be in the "phones" key.
Also, this piece of code fails to parse:
entity2: Column(
name: Homer
phones:
- 555-6528
- 555-7334
)
Is this considered a bug? If not, is there a specification of the NEON format somewhere explaining what is ok and what is not?
Could this be considered as a possible enhancement?
I just discovered Neon and love the way it works. Especially, I love the notion of entity.
Now, I have a question about the supported syntax inside an Entity.
I've noticed that this is OK:
This is ok too:
But this yields what I would deem to be an unexpected result:
In the attributes array, "home" and "work" are at the same level as "name" and "phones". I would have expected those keys to be in the "phones" key.
Also, this piece of code fails to parse:
Is this considered a bug? If not, is there a specification of the NEON format somewhere explaining what is ok and what is not?
Could this be considered as a possible enhancement?