Gozala / reducers

Library for higher-order manipulation of collections
MIT License
181 stars 8 forks source link

Simplify error hanling code #16

Closed Gozala closed 11 years ago

Gozala commented 12 years ago

Right now error handling is implemented via complicated scheme, where errors are boxed to indicate that they are errors. Although it would be a lot simpler if errors were just instances of error. For example if stream contains value where Object.prototype.toString.call(value) === "[object Error]" that stream is considered to be broken.