[enhanced-switches] My experience of converting old switches to new ones
    Tagir Valeev 
    amaembo at gmail.com
       
    Mon Sep 19 07:22:34 UTC 2022
    
    
  
Hello!
> > We need total switch statements.
>
>
> Is this different from the "default impossible" above?
Yes. I mean, currently we cannot have exhaustiveness checks on enum
switch statements having a compilation error when a new enum constant
is added. We have this for switch expressions and for sealed classes,
but not for switch statements over enums.
With best regards,
Tagir Valeev.
    
    
More information about the amber-spec-experts
mailing list