News for hackers. Stuff that matters.
Re:The KDL Document Language by stormbrew on Tuesday September 14, 2021 @01:46AM (#28520703)
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.

Re:The KDL Document Language by afranchuk on Tuesday September 14, 2021 @08:23AM (#28523623)
Yeah tbh I don't know why syntax commenting isn't more common; when I wrote a language with s-exprs one of the earliest things I did was add a comment form to comment out an expression. And _especially_ in s-exprs it's almost trivial to add! Really don't understand why we don't see it more.
Re:The KDL Document Language by mro_name on Tuesday September 14, 2021 @02:17PM (#28528573)
so do(n't) I.
Re:The KDL Document Language by tlamponi on Tuesday September 14, 2021 @01:49AM (#28520725)
The author specifically mentions at the end that they do not mean KDL to be a markup language:

> Finally, KDL is not a markup language. XML or HTML do a much better job of "marking up" a text document with special tags, although KDL can still be useful for templating engines that want to be more strict about text fragments.

Re:The KDL Document Language by floppydisc on Wednesday September 15, 2021 @08:03AM (#28537979)
Why is the slashdash comment style an incredible idea?
Re:The KDL Document Language by stormbrew on Wednesday September 15, 2021 @12:55PM (#28541503)
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.