Re:Hakaru: An embedded probabilistic programming language in...
by freyrs3 on Friday September 12, 2014 @12:20AM
(#8306574)
Use a sum type:
In Python we'd have to write the logic to handle both cases and fail with an exception or do an instanceof check. In Haskell we'd do this by pattern matching on the sum type.
[ Parent
| on HN ]
There are no comments on this comment yet.