Click here to Skip to main content
15,914,419 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 7:57
Colborne_Greg11-Jun-14 7:57 
GeneralRe: Visual Basic needs more credit Pin
richard_k11-Jun-14 14:31
richard_k11-Jun-14 14:31 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 15:13
Colborne_Greg11-Jun-14 15:13 
GeneralRe: Visual Basic needs more credit Pin
richard_k11-Jun-14 15:20
richard_k11-Jun-14 15:20 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 16:09
Colborne_Greg11-Jun-14 16:09 
GeneralRe: Visual Basic needs more credit Pin
Stefan_Lang13-Jun-14 2:16
Stefan_Lang13-Jun-14 2:16 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg14-Jun-14 20:38
Colborne_Greg14-Jun-14 20:38 
GeneralRe: Visual Basic needs more credit Pin
Stefan_Lang15-Jun-14 21:47
Stefan_Lang15-Jun-14 21:47 
That was just an aside. Every single object oriented language doesn't need and doesn't want a with keyword! If you need to perform a series of operations on a single object, then you write a method for that! You won't even need the introductory '.', and you can just call the method from different places without having to copy the original code (including the errors therein). That's a lot more elegant than your example, and far better readable because the implementation will be within the context of the object class, rather than in the context of some arbitrary function that just happens to use it!

I do realize that VB has classes too - but that is all the more reason that it shouldn't even have a with statement: it just leads to code that is harder to maintain than writing a class method.

Have you never wondered why an old language like Pascal has it, but none of the newer ones? Not even the newer languages by Niklaus Wirth himself (Modula, Oberon) have it! If you must discuss the merits of with, shouldn't you instead ask why its inventor, Niklaus Wirth, and (almost) all other designers of modern programming languages abandoned it?
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg16-Jun-14 0:47
Colborne_Greg16-Jun-14 0:47 
GeneralRe: Visual Basic needs more credit Pin
Stefan_Lang16-Jun-14 1:52
Stefan_Lang16-Jun-14 1:52 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg16-Jun-14 12:52
Colborne_Greg16-Jun-14 12:52 
GeneralRe: Visual Basic needs more credit Pin
Pete O'Hanlon10-Jun-14 4:49
mvePete O'Hanlon10-Jun-14 4:49 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 4:52
Colborne_Greg10-Jun-14 4:52 
GeneralRe: Visual Basic needs more credit PinPopular
Simon_Whale10-Jun-14 4:53
Simon_Whale10-Jun-14 4:53 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 5:10
Colborne_Greg10-Jun-14 5:10 
GeneralRe: Visual Basic needs more credit Pin
Pete O'Hanlon10-Jun-14 4:54
mvePete O'Hanlon10-Jun-14 4:54 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 5:01
Colborne_Greg10-Jun-14 5:01 
GeneralRe: Visual Basic needs more credit Pin
Richard Deeming10-Jun-14 4:54
mveRichard Deeming10-Jun-14 4:54 
GeneralRe: Visual Basic needs more credit Pin
dave.dolan11-Jun-14 3:32
dave.dolan11-Jun-14 3:32 
GeneralRe: Visual Basic needs more credit Pin
CDP180210-Jun-14 9:10
CDP180210-Jun-14 9:10 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 10:08
Colborne_Greg10-Jun-14 10:08 
GeneralRe: Visual Basic needs more credit Pin
CDP180210-Jun-14 13:17
CDP180210-Jun-14 13:17 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg10-Jun-14 15:30
Colborne_Greg10-Jun-14 15:30 
GeneralRe: Visual Basic needs more credit Pin
richard_k11-Jun-14 8:01
richard_k11-Jun-14 8:01 
GeneralRe: Visual Basic needs more credit Pin
Colborne_Greg11-Jun-14 8:35
Colborne_Greg11-Jun-14 8:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.