In my opinion, if the code is not self-evident, or at least simple enough to understand with a brief description, then the code should be reorganized. It should be shorter, or variables should be more understandable, or logic needs to be rethought.
In any case, I donโt think there is a way around this if you want to include an example and then you will not have comments in this example. If you really have comments, use the // notation.
source share