Computational expression using zero
When using a computational expression, the first definition works, and the second doesn't work for Zero.
What is the difference between this:
member o.Zero() = 3
and this:
member o.Zero = fun() -> 3
The first is evaluated as unit -> int
and the second is (unit -> int)
. What is the difference?
+3
source to share
1 answer