Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: