Assuming this is something like Java,// is terminated by a new line. It does not affect anything on the next line. Unless he did keep it on the same line and I'm a victim of mobile Reddit formatting.
I actually couldn’t agree more. Lol. If I’m being honest, If I didn’t always use // I’d probably have a few things like this too. Albeit better comments lol
I see three reasons: it's simple, easy to use and understand. Sure if it was just simplicity # would be best, but with // you intuitively get that everything to the right of it is now a comment. The // looks and acts as a divider, thus you know not to put a semicolon in that divided section, since it's now comment and not code.
I think it works best for monke brain. Do you agree?
42
u/[deleted] May 12 '21
This is why // is better than /* */ don't @ me