Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
0 points
RandallBrown
1y ago
0 comments
Share
This is actually really easy to do in most languages by wrapping the code you want to comment in a function.
func uglyHackForCombiningTwoThings() { // Do whatever ugly thing you want to do }
undefined | Better HN
0 comments
default
newest
oldest
GuB-42
1y ago
You don't need a function, a simple {} block is enough if the language supports it. Some languages (ex: Python) don't have that though, you may need a function, or some other construct (ex: if true) in this case.
j
/
k
navigate · click thread line to collapse