You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The restaurant has an original menu. When a customer needs to view the menu, the restaurant will copy a copy of the menu for him. There is an operation that can make the process faster: directly use the original for the customer. But the disadvantages of this operation are also obvious. The customer may modify the menu.
Now, in reality, the menu is Enum, and the object we operate is VALUES. We directly pass the original to the demander without making a safer copy, which is the price of speed. The redirector is not designed for a specific Enum, and we don’t know how many customers there are before running, so we can only hope that players can block those customers who will destroy the original menu through the configuration file.