2 ms·
I was superficially commenting on the fact that '//' comments everything to the end of the line[1], but as @jimbobimbo pointed out there are multiple layers her
by pyre 13y ago
I was superficially commenting on the fact that '//' comments everything to the end of the line[1], but as @jimbobimbo pointed out there are multiple layers here, and it would be a good lead-in to a conversation in an interview.
[1]: It just struck me as one of those "low bar" technical interview questions.
- Groxx 13y agohaha, that kinda makes me want to make a language that prevents comments from breaking scopes, so "}" would implicitly also be a comment terminator :)
- pyre 13y agoOff the top of my head, Vim has a folding mode where "{{{" and "}}}" are used to mark the start and end of a fold. So you can see this on the code: // ==== Section 1: Code ==== {{{ BLAH // ========================= }}} Granted, since this is Vim-specific, you usually only see it used in Vim plugins, because you're unlikely to have someone editing with another editor.