Re:Why I’m not leaving Python for Go
by papsosouid on Tuesday September 25, 2012 @09:21AM
(#4570151)
That isn't the same. If you do that you will get an Irrefutable pattern failed exception. You don't actually get access to x if justOrNone returns Nothing, because you are pattern matching and the Just pattern doesn't match. So you won't be able to use a non-value in further computations like you can with go.
[ Parent
| on HN ]
There are no comments on this comment yet.