1. G. Do, do not. There is no try.

    How many different geeky ways are their to say that?

    Ruby:

        [ "do", "do not" ].include? "try"
        => false
    

    Ruby:

        "do".include? "try" or "do not".include? "try"
        => false 
    

    Bash:

        $DO || ! $DO; try
        -bash: try: command not found
    

    I could probably spend 20-30 and figure out how to do this in PERL, Python, PHP, etc. but I want to see if you all out there have them on the top of your head.

    Edit: Adding a few thanks to hackedy.

    Python:

        >>> "try" in ["do", "do not"]
        >>> False
    

    Haskell:

        "try" `elem` ["do", "do not"]
        => False
    

    Clojure:

        (do (or 'do-not try))
        java.lang.RuntimeException: Unable to resolve symbol: try in this context
    

    3 months ago  /  3 notes

    1. hackedy reblogged this from f2h1gg and added:
      this has been fun, I’ll be here all week folks
    2. f2h1gg posted this