I wish there was a page with side by side JSON vs this for example.
Map comments (also posted in Gitter)
I'm considering both  and () as list and map brackets for Ren. What I haven't considered is the newer concept of allowing any value as a key. If Ren supports that, does it even need a separate map type? If Ren requires set-word keys, Red can directly support Ren maps, but not the other way around. Red maps would have to become Ren lists. If we do that, we lose the ability to distinguish them from parens when exchanged via Ren.
The idea of allowing () for lists is that it makes Ren more Redbol compatible, as well as flexible for those not used to square brackets. We may decide that more constraints are better, at least to begin with.
There is nothing that says Ren has to require pairs of values either, though there is certainly merit in that. We could just as easily say that a leading # before a list is just a hint.
e.g., if there is no map hint, the loader should never try to coerce the result to a map, if there is a hint, the loader decides what type to coerce to based on contents. If there is no outer list, as in a streaming scenario, there is implicitly no hint.
Remember that map! in Red is just a specialized version of hash!.
And hash! is as flexible as block! is.
Understood. The question is not what Red can do, but what Ren should support.
Well, if you move too far from Redbol syntax, I'm not sure where you want to go with Ren.
I would love for Ren to just LOAD in all Redbol langs. But they're not all equal either.
At the beginning, Ren was about promoting the Rebol data format, so that non-Rebol users could enjoy a more human-readable format. But I'm not sure what are the current goals now?
And it needs to balance against a JSON comparison.
My goal is the same. Basically REBOL, perhaps eliminating things to appear simpler, and the need to add a literal map syntax.
If you don't have the need to support construction syntax in Ren, then it frees the #[...] form.
Or you can use #(...) as in Red now (and in Rebol3 in the future).
Right, hence my questions above. Does Ren not care what is in the block structs? If it doesn't enforce name-value pairs in # or #(), then old construction syntax and Red maps are both valid.
I really hope that we also implement -4 proposal from Fork, as a good consensus to what Ladislav requested as strict space requeirements. That would bring us possibility to come up with more forms ....
That's where my thought about # being a hint came from.
is there a website for -4 proposal? Or is that just in terms of Ladislav's CC ticket?