Kartik Agaram
02/03/2020, 12:12 AMIvan Reese
02/03/2020, 12:25 AMwtaysom
02/03/2020, 12:27 AM--[[
--]]
--[=[
--[[
--]]
--]=]
Kartik Agaram
02/03/2020, 4:54 AMIvan Reese
02/03/2020, 4:59 AMEdward de Jong / Beads Project
02/03/2020, 6:34 AMKartik Agaram
02/03/2020, 6:41 AM[ comment name [
...
] comment name ]
Ivan Reese
02/03/2020, 6:53 AMKartik Agaram
02/03/2020, 8:06 AMDoug Moen
02/03/2020, 10:33 PM#
in Python or //
in C. If you are using a smart editor designed for programming, then you already have high level commands for commenting or uncommenting a block of code using line comments.
My preferred block comment syntax would use distinct start-comment and end-comment tokens. The syntax would be designed so that any syntactically valid block of code can be commented out, simply by wrapping the block of code in start- and end-comment tokens. Implementing this last requirement correctly is tricky, in the presence of nested comments, and I'm not sure if I've seen a language with block comments that works the way I want.