Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
BillWoodruff18-May-19 18:02
professionalBillWoodruff18-May-19 18:02 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
David A. Gray20-May-19 9:15
David A. Gray20-May-19 9:15 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
BillWoodruff20-May-19 17:17
professionalBillWoodruff20-May-19 17:17 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
OriginalGriff17-May-19 21:20
mveOriginalGriff17-May-19 21:20 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
#realJSOP18-May-19 1:10
mve#realJSOP18-May-19 1:10 
AnswerRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
Jörgen Andersson17-May-19 20:04
professionalJörgen Andersson17-May-19 20:04 
AnswerRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
Eddy Vluggen17-May-19 23:12
professionalEddy Vluggen17-May-19 23:12 
AnswerRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
jsc4218-May-19 0:03
professionaljsc4218-May-19 0:03 
Many years ago, I wrote an expression evaluator for a Pascal compiler. "With" provided extra levels of complexity, which made me dislike it.


"With" in VB leads to ambiguities when nested as you can have multiple sets of 'withed' variables in the same inner block. 'with' (now deprecated) in JavaScript lead to ambiguities where you could loop the 'with' and variables in the same construct could be global in one pass and local in subsequent passes.

Used carefully, "With" can be a convenient shortcut; but it can be used badly. If you give people knives, they may whittle beautiful sculptures, but they are more likely to injure themselves or someone else.
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
Gerry Schmitz18-May-19 7:03
mveGerry Schmitz18-May-19 7:03 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
David A. Gray18-May-19 11:08
David A. Gray18-May-19 11:08 
GeneralRe: Does Anybody Else Miss the WITH construct of Visual Basic? Pin
BillWoodruff18-May-19 18:29
professionalBillWoodruff18-May-19 18:29 
QuestionCollecting my replies Pin
Brian_TheLion16-May-19 16:51
Brian_TheLion16-May-19 16:51 
AnswerRe: Collecting my replies Pin
OriginalGriff16-May-19 19:51
mveOriginalGriff16-May-19 19:51 
GeneralRe: Collecting my replies Pin
Brian_TheLion17-May-19 14:39
Brian_TheLion17-May-19 14:39 
SuggestionRe: Collecting my replies Pin
Eddy Vluggen16-May-19 23:05
professionalEddy Vluggen16-May-19 23:05 
GeneralRe: Collecting my replies Pin
Brian_TheLion17-May-19 14:56
Brian_TheLion17-May-19 14:56 
AnswerRe: Collecting my replies Pin
BillWoodruff17-May-19 2:54
professionalBillWoodruff17-May-19 2:54 
GeneralRe: Collecting my replies Pin
Brian_TheLion17-May-19 14:20
Brian_TheLion17-May-19 14:20 
GeneralRe: Collecting my replies Pin
BillWoodruff17-May-19 14:36
professionalBillWoodruff17-May-19 14:36 
GeneralRe: Collecting my replies Pin
Brian_TheLion17-May-19 16:18
Brian_TheLion17-May-19 16:18 
GeneralRe: Collecting my replies Pin
jsc4218-May-19 0:07
professionaljsc4218-May-19 0:07 
GeneralRe: Collecting my replies Pin
Brian_TheLion17-May-19 16:18
Brian_TheLion17-May-19 16:18 
GeneralRe: Collecting my replies Pin
BillWoodruff17-May-19 16:44
professionalBillWoodruff17-May-19 16:44 
GeneralRe: Collecting my replies Pin
Brian_TheLion17-May-19 18:08
Brian_TheLion17-May-19 18:08 
GeneralRe: Collecting my replies Pin
Richard MacCutchan17-May-19 21:15
mveRichard MacCutchan17-May-19 21:15 

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.