News for hackers. Stuff that matters.
Re:Jsonnet – A data templating language by kuroikyu on Saturday June 23, 2018 @06:59PM (#17383916)
> JSON + Variables, Conditionals, Arithmetic, Functions, Imports, Error Propagation

Is this going full circle then? JS -> JSON -> JS.

More seriously and like someone already said, to many brackets and quotes for rapid prototyping.

Re:Jsonnet – A data templating language by blacksoil on Saturday June 23, 2018 @08:23PM (#17384233)
I think the use cases are more to generate JSON file, for example, to generate config file based on a template.
Re:Jsonnet – A data templating language by penagwin on Saturday June 23, 2018 @08:07PM (#17384169)
Yes I am confused by this as well. It's a templating language for javascript objects? Isn't javascript a framework/language to create javascript objects? Other then interface with a few APIs (in browser or node.js) it can't do anything else.
Re:Jsonnet – A data templating language by lttlrck on Saturday June 23, 2018 @08:44PM (#17384321)
If you’re using Javascript or have an embedded JavaScript runtime sure use that.

The 1st party bindings are for C, Go and Python; so it a cross-language JSON DSL. And making it a strict DSL has significant advantages.