4 ms·
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 sty
by stormbrew 5y ago
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.
- tlamponi 5y agoThe 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.
- afranchuk 5y agoYeah 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.
- mro_name 5y agoso do(n't) I.
- floppydisc 5y agoWhy is the slashdash comment style an incredible idea?
- stormbrew 5y agobecause 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.