Re:The 5 Stages of YAML
by paulddraper on Monday August 20, 2018 @06:12PM
(#17804489)
For something in between 4 and 5 for JSON, see https://jsonnet.org/
[ Parent
| on HN ]
Re:The 5 Stages of YAML
by BugsJustFindMe on Monday August 20, 2018 @10:12PM
(#17806296)
That's kinda funny. Once you add comments and function calls to JSON, you've basically just made a Python module.
Re:The 5 Stages of YAML
by beaconstudios on Tuesday August 21, 2018 @05:29AM
(#17808224)
at that point you might as well just require() a js file instead of skirting around the issue of code vs config.
Re:The 5 Stages of YAML
by paulddraper on Tuesday August 21, 2018 @03:05PM
(#17812715)
It is Turning complete, but also pure (side-effect free).
Re:The 5 Stages of YAML
by beaconstudios on Tuesday August 21, 2018 @03:51PM
(#17813075)
You don't need a whole new language to have that though, just don't put side effects in your config.js