Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Rare Uses of a "ControlFlowException"

 
Lukas Eder
Ranch Hand
Posts: 48
5
Java Oracle Postgres Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rare Uses of a "ControlFlowException"

Control flows are a "relict" from imperative programming, which has leaked into various other programming paradigms, including Java’s object oriented paradigm. Apart from the useful and ubiquitous branch and loop structures, there are also primitives (e.g. GOTO) and non-locals (e.g. exceptions).

This article gives some insight into various ways of simulating GOTO and implementing control flow signalling using exceptions. Only for those who dare challenge Java best practices!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic