Saturday, October 8, 2011

"Let it crash" - Scala

The “let it crash” approach to fault/error handling, implemented by linking actors, is very different to what Java and most non-concurrency oriented languages/frameworks have adopted.
It encourages non-defensive programming. Don’t try to prevent things from go wrong, because they will, whether you want it or not. Instead; expect failure as a natural state in the life-cycle of your app, crash early and let someone else (that sees the whole picture), deal with it.

reference: http://akka.io/docs/akka/1.1.3/scala/fault-tolerance.html

No comments: