alavrik / erlson

Erlang Simple Object Notation - dynamic name-value dictionary data type and syntax for Erlang
MIT License
81 stars 17 forks source link

Why not add list support to erlson #13

Closed gemSender closed 2 years ago

gemSender commented 10 years ago

for example: D = [{name, <<"joe">>}, {friends, [<<"jack">>, <<"peter">>]}], D1 = D#{friends.1 = <<"john">>}, D1 = [{name, <<"joe">>}, {friends, [<<"jack">>, <<"john">>]}].

alavrik commented 10 years ago

Well... Next thing you realize is that you want to also index by an arbitrary integer expression, e.g. being able to do something like D#{friends.[Expr] = <<"john">>}. Or firends.[Expr] in general. Essentially, this is similar to what another person suggested in https://github.com/alavrik/erlson/issues/12 Please see my comments there.