Closed rauchg closed 7 years ago
Hi :-) Thanks for trying Koka! The pure
effect is an alias for <exn,div>
and includes both exceptions and possible divergence. The total
effect is used for mathematically total functions. The terminology is chosen because it corresponds to Haskell's notion of purity where "pure" functions (and values!) can actually diverge or raise exceptions.
@daanx that makes it super clear. Thank you
When I hover the
looptest
identifier, I don't seediv
, which is to be expected from the usage ofwhile
? I also don't seeexn
, which should come fromerror
.