29
blt950
8y

<? $year = year++; ?>

Comments
  • 2
    (defn happy [x] (str "Happy " x "!"))
    (print (happy 2017))

    Because it looks like Clojure is gonna get popular in 2017.
  • 2
    You do realise that the return value of $year++ is the old value?
  • 0
    @kanduvisla Did you also notice that the variable on the LHS is not the same as the other side? πŸ˜‚
  • 0
    @floatright yes, but my devrant suppreses notices and assumed a constant instead.
  • 1
    Did you guys notice it's a rant just to wish happy new year, not to parse it through a compiler ? πŸ˜™ I'm aware of the bug in the code, it's a feature and I don't push fixes on fridays πŸ™ŒπŸΌπŸŽ‰ Happy new year!
  • 1
    Well, that's the beauty of devrant. Expect a code review of epic proportions over the most tiny bits of code. πŸ˜‚πŸ˜‰

    Nevertheless, happy new year everyone!
  • 0
    @Cube189 (print "Happy new Clojure year!") Suffices for the rest of eternity. Clojure<3
Add Comment