Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Ruby is beautiful

Name: Anonymous 2009-08-26 15:25

class Cycle
    def cycle(*args)
      args[((@_cycles ||= Hash.new(-1))[args.hash] += 1) % args.size]
    end
end

More beautiful code plees?

Name: Anonymous 2009-08-27 13:18

>>23
Wow, HASKAL is even more useless than I thought. Even C is better about this.

Name: Anonymous 2009-08-27 13:21

``Even C'' is better about everything.  HASKAL is a theoretical toy.

Name: Anonymous 2009-08-27 13:58

>>23
After reading this, I can see very clearly (without knowing anything else about it) why nobody has ever written a real program in Haskell.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List