Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between case, case+ and case- in ATS?

Tags:

ats

I often see a case-expression in ATS formed using case, case+, or case-. What is the difference?


1 Answers

Using case will issue a warning if the expression is not exhaustive, case+ will yield an error instead, while case- will suppress the message about exhaustiveness altogether. See this chapter of INT2PROGINATS for further detail.

like image 96
Arets Paeglis Avatar answered Dec 07 '25 15:12

Arets Paeglis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!