Closed
Description
I found this change in our test suite while trying to stabilize the preview style:
match command.split():
case ["north"] | ["go", "north"]:
current_room = current_room.neighbor("north")
- case ["get", obj] | ["pick", "up", obj] | ["pick", obj, "up"]:
- ... # Code for picking up the given object
+ case (
+ ["get", obj] | ["pick", "up", obj] | ["pick", obj, "up"]
+ ): ... # Code for picking up the given object
This is from the dummy_implementation
preview change, #3796.
I think the new code looks worse here; we shouldn't use the dummy_implementation branch if there is a comment after the ellipsis.
Activity