← Back to context

Comment by arethuza

2 years ago

One of the "quirks" that really caught me out once was the fact that VB6 doesn't do short-circuit evaluation of logical operators....

VB.NET was apparently suppose to get short-circuited evaluation, but many of the old VB6 developers hated that or misused it in a bunch of places and their code would break when they attempted to move over to VB.NET. So instead Or and And went back to not being short circuited, and we instead got OrElse and AndAlso, both of which are short circuited.