The latter simplifies the client code by avoiding the need to handle it
as a separate case statement.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Thanks.
It's indeed a common pattern. The problem is that it forces clients to handle this extra case in every switch statement (otherwise we get compiler warnings).
LastKind avoids this, therefore it's arguably a little better for the clients.