Skip to content

Instantly share code, notes, and snippets.

View Swatinem's full-sized avatar

Arpad Borsos Swatinem

View GitHub Profile
@Swatinem
Swatinem / gist:5585263
Created May 15, 2013 16:25
The Java way of doing control flow
// the java way of doing control flow
try {
init;
for (;;) {
try {
if (!condition)
throw new ConditionNotMetExpection();
if (foo)
throw new ContinueExpection();
if (bar)