3 ms·
This is pretty basic stuff. Still, in real code you want to put some comments when you do something like: switch (myvariable) { case 1: { foo(); b
by espinchi 16y ago
This is pretty basic stuff.
Still, in real code you want to put some comments when you do something like:
switch (myvariable) {
case 1: {
foo();
break();
}
case 2: {
bar(); // Your comments here
}
case 3: {
foobar();
break;
}
}
And also, you'd better have a good reason to do such thing!
As someone said, Readability counts.