ast-visitor-pattern

Use the frozen-class/visitor pattern for discriminated unions that have multiple dispatch sites. Use when creating a new set of variants (commands, IR nodes, factory calls) that will be switched over in 2+ places, or when refactoring an existing union type that has grown multiple switch sites.

SKILL.md55458c441d2c
Loading supporting files

Comments: 0

Be the first to comment

Share what worked or leave a question for the creator.

Log in to comment

prisma/prisma-next · Apache-2.0 · Revision 55458c441d2c

backend development