Re:Linear types are merged in GHC
by comex on Friday June 19, 2020 @07:43PM
(#23580059)
That wouldn't work, because the value must be used in all possible control paths. In this case, both the 'then' and 'else' branch would have to use the value.
[ Parent
| on HN ]
Just curious, what is considered as 'using' the value?
Passing it as a parameter to a function or returning it