Even newcomers to Scala know about Option class. We are starting from it as from solution to Nullpointer errors, later we finding it as a very useful Monad implementation. It is dual natured - one is Monadic Container - value is inside - and second is Monadic Zero with no value. Actually sometimes it is useful to have some value even in Zero container. For example non breaking error handing. Errors are important and even can be accumulated into the List.
Showing posts with label Either. Show all posts
Showing posts with label Either. Show all posts
Monday, 18 June 2012
Sunday, 10 June 2012
Validation: Non-breaking Error Handling
Non-breaking error handling was covered in few nice articles and presentations. Was reading one from Tony Morris. Solution for validation is looking little bit overcomplicated for me.
Subscribe to:
Posts (Atom)