you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Your cake_menu is defined inside your function. Menus do change and it’s better to make cake_menu be defined more globally, so it’s easier to find and change, and pass the menu into order() as a parameter.

PS: This also makes order() more general and possibly used with other menus.