Does anyone know if there’s any particular reason that VB.NET construct syntax isn’t consistent? For example:
If
...
End If
Select
...
End Select
You’d assume it would be for... end for, while... end while … but instead we have:
While
...
Wend
For
...
Next
This has mildly frustrated me for a while, and I just got to wondering whether there was any conscious decision behind it. Or was it just an initial not-so-well-thought-out design decision that can no longer be changed because of backwards compatibility problems?
The
Whileconstruct has actually gotten more consistent since VB 7. It’s nowEnd Whileinstead ofWend.The reason for the inconsistent
Nextis mostly historical. It’s been that way in BASIC since the first version, more than 40 years ago.