Hacker News new | ask | show | jobs
by ben509 1959 days ago
The two-space compromise might work:

    def handle(command):
        match command.split():
          case ["quit"]:
            print("Goodbye!")
            quit_game()
          case ["look"]:
            current_room.describe()
It'll be a bit odd, though.
1 comments

I have never really pushed hard on style in my software journey. But this is different. That code sample is horrifying.