Click here to Skip to main content
15,905,558 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.

 
JokeRe: Another C# syntax to wish for (or any C class language) Pin
Daniel Pfeffer27-Sep-16 3:58
professionalDaniel Pfeffer27-Sep-16 3:58 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
kalberts27-Sep-16 2:35
kalberts27-Sep-16 2:35 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
Richard Deeming27-Sep-16 3:15
mveRichard Deeming27-Sep-16 3:15 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
kalberts27-Sep-16 3:41
kalberts27-Sep-16 3:41 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
raddevus27-Sep-16 3:21
mvaraddevus27-Sep-16 3:21 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
kalberts27-Sep-16 3:58
kalberts27-Sep-16 3:58 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
jsc4227-Sep-16 3:23
professionaljsc4227-Sep-16 3:23 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
kalberts27-Sep-16 3:35
kalberts27-Sep-16 3:35 
I never knew the 'n and a half times loop', but essentially it is the same idea.

A couple disadvantages with your syntax: The exit statements are spread all over the loop code (if you have several 'EXITIF condition' and their associated statements spread throughout the loop. How do you indicate the end of an EXITCLAUSE?

Second: Several distinct / different EXITIF tests might require identical exit statements. When you directly follow the test with the exit statements, you might end up repeating the same code several times.

But all in all: The goal of this proposal closely resembles my exitfor/exitwhile idea.
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
Marc Clifton27-Sep-16 4:20
mvaMarc Clifton27-Sep-16 4:20 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
kalberts27-Sep-16 4:31
kalberts27-Sep-16 4:31 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
Marc Clifton28-Sep-16 15:33
mvaMarc Clifton28-Sep-16 15:33 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
Ryan Peden27-Sep-16 5:25
professionalRyan Peden27-Sep-16 5:25 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
BillWoodruff27-Sep-16 17:05
professionalBillWoodruff27-Sep-16 17:05 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
PIEBALDconsult28-Sep-16 11:05
mvePIEBALDconsult28-Sep-16 11:05 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
lopatir28-Sep-16 19:49
lopatir28-Sep-16 19:49 
GeneralRe: Another C# syntax to wish for (or any C class language) Pin
kalberts29-Sep-16 0:49
kalberts29-Sep-16 0:49 
GeneralHmm, I am starting to wonder about recruitment... Pin
glennPattonWork327-Sep-16 0:09
professionalglennPattonWork327-Sep-16 0:09 
PraiseRe: Hmm, I am starting to wonder about recruitment... Pin
Duncan Edwards Jones27-Sep-16 0:17
professionalDuncan Edwards Jones27-Sep-16 0:17 
GeneralRe: Hmm, I am starting to wonder about recruitment... Pin
glennPattonWork327-Sep-16 0:25
professionalglennPattonWork327-Sep-16 0:25 
GeneralRe: Hmm, I am starting to wonder about recruitment... Pin
dandy7227-Sep-16 7:38
dandy7227-Sep-16 7:38 
GeneralRe: Hmm, I am starting to wonder about recruitment... Pin
glennPattonWork327-Sep-16 7:54
professionalglennPattonWork327-Sep-16 7:54 
GeneralRe: Hmm, I am starting to wonder about recruitment... Pin
Daniel Pfeffer27-Sep-16 0:18
professionalDaniel Pfeffer27-Sep-16 0:18 
GeneralRe: Hmm, I am starting to wonder about recruitment... Pin
glennPattonWork327-Sep-16 0:23
professionalglennPattonWork327-Sep-16 0:23 
GeneralRe: Hmm, I am starting to wonder about recruitment... Pin
dan!sh 27-Sep-16 0:39
professional dan!sh 27-Sep-16 0:39 
GeneralRe: Hmm, I am starting to wonder about recruitment... Pin
glennPattonWork327-Sep-16 0:50
professionalglennPattonWork327-Sep-16 0:50 

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.