Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

n-breaks?

Name: Anonymous 2017-09-22 2:12

Why can't we just have break accept a number so we can break multiple loops at the same time?


for( /*...*/ ) {
do {
x = f();

switch( x ) {
case Error;
break 3; // was that so fucking hard?
}
} while( /*...*/ );
}


Dare say I should use... EXCEPTIONS?!

Name: Anonymous 2017-09-22 8:38

>>6
that would require more runtime information (loop returns on stack?)
How about you restrict n-breaks to positive integer literals?

Name: Anonymous 2017-09-22 8:42

>>7
then you can just use labels

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List