5

Different types of comments that I know in programming languages

C, C++, Java, C# , JavaScript, Golang
// whatever and /* whatever */

CSS
/* whatever */

Python, Ruby, BASH, Powershell, perl, TCL
# whatever

Almost all markup languages
<!-- whatever -->

I was amazed by how many languages i know along the way!

Comments
  • 7
    Weird flex but ok
  • 3
    How do we comment in Brainfuck?
  • 3
    @hack by literally typing anything but

    +-<>[],.

    No special syntax is need for comments as brainfuck ignored everything but those
  • 6
    @ScribeOfGoD Whitespace is also a cool language for comments

    Everything you see is a comment
  • 1
    And then there's Lua.
  • 4
    XML based markup comments get 6 awards from me:
    * most retarded
    * longest
    * hardest to type
    * ugliest
    * least reliable
    * probably made for aliens
  • 1
    markdown:
    [comment]: <> (something)

    I didn't even know markdown had comments! Last week, I hit the comment-shortcut out of habit and tadaa 🎉
  • 2
    What a legend!
  • 4
    ; assembly comments

    -- lua comments

    REM batch script comments

    " Vim comments

    Those are some of the more exotic that I know of.
Add Comment