This can be useful for more efficient switching in when statements (with enum whens compiling to branch tables on JVM), it can be useful for exposing the specific TAG_List element type (which could be TAG_Endor something else for empty lists), and acts as a standard way to work with the tag types instead of library users having to create their own enum.
This can be useful for more efficient switching in
when
statements (with enumwhen
s compiling to branch tables on JVM), it can be useful for exposing the specificTAG_List
element type (which could beTAG_End
or something else for empty lists), and acts as a standard way to work with the tag types instead of library users having to create their own enum.