Using colons to put two statements on the same line in Visual Basic [closed]

There is nothing inherently wrong with using the colon to combine statements. It really depends on the context but as long as it doesn’t reduce readability, there is nothing wrong with it.

As a general rule I avoid using the colon for this purpose. I find it’s more readable to have one statement per line. However this is not a colon specific issue. I avoid doing the same with a semi-colon in C# or C++. It’s just a personal preference.

Leave a Comment