Re: Go ahead. Stop programming. This ensures you from any mistakes.
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Sat, 9 Jun 2007 17:14:24 +0100
valentin tihomirov <V_tihomirov@xxxxxxx> wrote:
Well, you were the one to suggest "Stop programming" to start with.
The only reliable way to defend yourself from network attacks is to
disconnect from the network. It is what is used to say when somebody limits
your communication (a provider blocks some TCP ports, for instance) "for
making it safer". If you wish to avoid doing errors, you should stop doing
things. Hinderances on the plain way do not defend you.
Right - and likewise, the only way it seems that you'll stop being
cross about things that C# stops you from doing is to stop using C#.
Compiler, grammar is needed to protect from doing nonsense, like assinging
date to a boolean or using unassigned variable or writing into constant
memory. It should not protect you from doing sensable things like writng
integer const to integer var or defining a not yet defined variable or
executing statements one after another.
Well, I'm sure I'm not the only one who's been bitten by accidental
fallthrough in switch statements in C. As I said, I would prefer a more
radical overhaul of switch/case, but I'd rather have what we've got
than a version which has all the ugliness of the current version but
with the added problem of fallthrough.
As Ben pointed out, you can always use goto case if you really want the
effect of fallthrough.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: Go ahead. Stop programming. This ensures you from any mistakes.
- From: valentin tihomirov
- Re: Go ahead. Stop programming. This ensures you from any mistakes.
- References:
- already used in a 'child' scope to denote something else
- From: valentin tihomirov
- Re: already used in a 'child' scope to denote something else
- From: Jon Skeet [C# MVP]
- Go ahead. Stop programming. This ensures you from any mistakes.
- From: valentin tihomirov
- Re: Go ahead. Stop programming. This ensures you from any mistakes.
- From: Jon Skeet [C# MVP]
- Re: Go ahead. Stop programming. This ensures you from any mistakes.
- From: valentin tihomirov
- Re: Go ahead. Stop programming. This ensures you from any mistakes.
- From: Jon Skeet [C# MVP]
- Re: Go ahead. Stop programming. This ensures you from any mistakes.
- From: valentin tihomirov
- already used in a 'child' scope to denote something else
- Prev by Date: Re: Getting the default printer in 64-bit Vista
- Next by Date: Re: server scenario - variables in the right spot?
- Previous by thread: Re: Go ahead. Stop programming. This ensures you from any mistakes.
- Next by thread: Re: Go ahead. Stop programming. This ensures you from any mistakes.
- Index(es):