Haskell decision making
A few days ago, while I was implementing something in PL/SQL for that dreaded Oracle Forms project I had to code some scary if-else construct spanning two logic checks that depending on the combination gave four different results.
if a=true and b=true then 1
elsif a=true and b=false then 2
elsif a=false and b=true then ...
Back in the train on the way home I had a look if my limited Haskell knowledge could come up with something nicer.
read more
Lesen Sie den vollständigen Eintrag unter http://realfiction.net/?q=node/123