<< Back to previous view

[ALGOM-16] domonad state-m when :cond missing clause throw null pointer exception Created: 17/Feb/16  Updated: 17/Feb/16

Status: Open
Project: algo.monads
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Major
Reporter: Paulo Cuneo Assignee: Konrad Hinsen
Resolution: Unresolved Votes: 0
Labels: None


 Description   

Following snipped will throw a null pointer, the rest of the monads just return "monad fail"-ish.

[org.clojure/algo.monads "0.1.5"]

(use 'clojure.algo.monads)

((domonad state-m [x (m-result 1)
:cond [(= x 2)
[x (m-result 2)]]]
x) {})

It should fail because no matching clause is specified
but a null pointer gives no clue that cond is missing a clause.






[ALGOM-15] either monad Created: 15/Jan/16  Updated: 15/Jan/16

Status: Open
Project: algo.monads
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Enhancement Priority: Minor
Reporter: Cezary Kosko Assignee: Konrad Hinsen
Resolution: Unresolved Votes: 0
Labels: enhancement

Attachments: Text File either-m.patch    
Patch: Code and Test

 Description   

implementation of either monad (useful when maybe's not enough, because one needs to carry something around)






Generated at Sat Jul 23 14:21:28 CDT 2016 using JIRA 4.4#649-r158309.