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
- rG LLVM Github Monorepo
- Build Status
Buildable 37852 Build 37851: arc lint + arc unit
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.