Live data from Hacker News

The KDL Document Language

kdl.dev

61–64 of 64 posts

Re: The KDL Document Language

#61

I have pretty much no interest in another markup language (or whatever we're calling these sorts of things today[1]) but I really want the slashdash comment style in every language I use now, that's an incredible idea. [1] apparently I didn't edit this in fast enough but wow I have even less interest in semantic arguments about what is and isn't a markup language.

Why is the slashdash comment style an incredible idea?

because commenting out multiple lines of code in most languages is tedious and involves me doing work the compiler already knows how to do in my head.

Sure, editors often have shortcuts, but then undoing them is often a pain and sometimes I'm editing something in a really basic editor and it'd be nice to just let the compiler to it.

Re: The KDL Document Language

#63
post #28

Go for it KDL, I really want a better standard for this. Anyone with some dev experience has done the XML => Json => Yaml => “screw it I’ll do my own” cycle. It’s painful to go through.

Yeah. What's next to follow? The whole format ecosystem - only KDL, i.e. all the equivalents of XPath, XSLT, XQuery, XML Schema, libraries, and modern re-envision of other tools such as jq and JMESPath...

Re: The KDL Document Language

#64
post #59

This is also close enough to GraphQL that it could replace it. The only syntactic difference I see with GraphQL is the lack of parenthesis around arguments and the existence of anonymous arguments.

It's pretty close to HashCorp's HCL, actually.
Post reply on HN