Idk, maybe that would be a terrible idea in practice. But there are lots of instances where it would have saved me time.
Idk, maybe that would be a terrible idea in practice. But there are lots of instances where it would have saved me time.
It's super-useful to temporarily comment out a bit of code, and then to comment out a larger block surrounding it. Especially when debugging.
Sadly I've never used a language that supported that.
e.g. '/*' and '*/' would match each other, '/**' and '**/' would match, and so on.
That way, you would have full control of the depth of the comments, removing other comments wouldn't break the inner comments, etc.
I do run into the same issue you're describing, so I think there's value in the idea.
What I'm not sure of is whether there's an edge case I haven't thought of which would make this problematic.