Click here to Skip to main content
15,923,006 members

Survey Results

Should C# get the VB-style "with" keyword?   [Edit]

Survey period: 6 Oct 2008 to 13 Oct 2008

If not then maybe we could look into the "Ain't" keyword...

OptionVotes% 
Yes27937.20
No47162.80



 
GeneralRe: No vote for me.... Pin
PIEBALDconsult6-Oct-08 16:15
mvePIEBALDconsult6-Oct-08 16:15 
GeneralRe: No vote for me.... Pin
Jeremy Falcon7-Oct-08 9:05
professionalJeremy Falcon7-Oct-08 9:05 
GeneralRe: No vote for me.... Pin
NotUnique7-Oct-08 14:00
professionalNotUnique7-Oct-08 14:00 
GeneralIf you need the with keyword Pin
Ennis Ray Lynch, Jr.6-Oct-08 13:08
Ennis Ray Lynch, Jr.6-Oct-08 13:08 
GeneralRe: If you need the with keyword Pin
Shog96-Oct-08 14:21
sitebuilderShog96-Oct-08 14:21 
GeneralRe: If you need the with keyword Pin
Jeremy Falcon7-Oct-08 8:50
professionalJeremy Falcon7-Oct-08 8:50 
GeneralRe: If you need the with keyword Pin
Ennis Ray Lynch, Jr.7-Oct-08 9:09
Ennis Ray Lynch, Jr.7-Oct-08 9:09 
GeneralRe: If you need the with keyword Pin
Jeremy Falcon7-Oct-08 10:04
professionalJeremy Falcon7-Oct-08 10:04 
Ennis Ray Lynch, Jr. wrote:
One of the fundamental principles of Object Oriented design is data hiding. If you are directly accessing members outside of a class then you are violating a philosophy and your code can be rewritten to be more maintainable.


Which has nothing to do with the point. You can and should access members inside the class or friend classes etc, unless you never access members at all except within the same class. In which case, there's no point even writing them as the class is virtually unusable. Furthermore, public members aren't all that bad they just shouldn't be abused. And lastly, you can use this on just more on a public member.

Sorry, but this is apples to oranges. It's a language construct meant as a shortcut to save typing. There's no reason the idea of refactoring should even come into play as a reason to not use it. Granted, you can write some horrid code by abusing it, but the again there's a lot of ways to do that in any environment.

Jeremy Falcon
Oatmeal Engine[^]

GeneralRe: If you need the with keyword Pin
Ennis Ray Lynch, Jr.7-Oct-08 10:07
Ennis Ray Lynch, Jr.7-Oct-08 10:07 
GeneralRe: If you need the with keyword Pin
Jeremy Falcon7-Oct-08 10:18
professionalJeremy Falcon7-Oct-08 10:18 
GeneralRe: If you need the with keyword Pin
Ennis Ray Lynch, Jr.7-Oct-08 10:27
Ennis Ray Lynch, Jr.7-Oct-08 10:27 
GeneralRe: If you need the with keyword Pin
Vark1117-Oct-08 10:59
Vark1117-Oct-08 10:59 
GeneralRe: If you need the with keyword Pin
Jeremy Falcon8-Oct-08 6:14
professionalJeremy Falcon8-Oct-08 6:14 
GeneralRe: If you need the with keyword Pin
Ennis Ray Lynch, Jr.8-Oct-08 6:21
Ennis Ray Lynch, Jr.8-Oct-08 6:21 
GeneralRe: If you need the with keyword Pin
Jeremy Falcon8-Oct-08 6:33
professionalJeremy Falcon8-Oct-08 6:33 
GeneralRe: If you need the with keyword Pin
Ennis Ray Lynch, Jr.8-Oct-08 6:40
Ennis Ray Lynch, Jr.8-Oct-08 6:40 
GeneralRe: If you need the with keyword Pin
Jeremy Falcon8-Oct-08 6:48
professionalJeremy Falcon8-Oct-08 6:48 
GeneralI don't constantly check either, I just get email alerts and am easily distracted Pin
Ennis Ray Lynch, Jr.8-Oct-08 7:17
Ennis Ray Lynch, Jr.8-Oct-08 7:17 
GeneralRe: I don't constantly check either, I just get email alerts and am easily distracted Pin
Jeremy Falcon9-Oct-08 10:44
professionalJeremy Falcon9-Oct-08 10:44 
GeneralRe: If you need the with keyword Pin
Scott Barbour8-Oct-08 8:48
Scott Barbour8-Oct-08 8:48 
GeneralRe: If you need the with keyword Pin
Ennis Ray Lynch, Jr.8-Oct-08 9:00
Ennis Ray Lynch, Jr.8-Oct-08 9:00 
GeneralRe: If you need the with keyword [modified] Pin
Scott Barbour8-Oct-08 10:22
Scott Barbour8-Oct-08 10:22 
GeneralRe: If you need the with keyword Pin
Ennis Ray Lynch, Jr.8-Oct-08 10:46
Ennis Ray Lynch, Jr.8-Oct-08 10:46 
GeneralRe: If you need the with keyword Pin
dmitri_sps7-Oct-08 21:55
dmitri_sps7-Oct-08 21:55 
GeneralRe: If you need the with keyword [modified] Pin
sucram7-Oct-08 23:08
sucram7-Oct-08 23:08 

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.