language style evolution

[ case study: that Hamlet cliché ]

English:

To be, or not to be: that is the question:

C:

q = to ? be : !be;

Haskell:

q = or [to be, (not . to) be]

… and so on.

Comments (5)

  1. fcbl wrote::

    2B||!2B

    Sunday, February 21, 2010 at 17:42 #
  2. spyked wrote::

    … sigur, asta a evoluat inevitabil în stilul Sinatra: do be do be do.

    Sunday, February 21, 2010 at 18:42 #
  3. BusterDBK wrote::

    TB or not TB? It’s never lupus!

    Sunday, February 21, 2010 at 19:20 #
  4. Why not


    q = or [id, not] [to be]

    În ghci :m +Control.Applicative :D

    Sunday, February 21, 2010 at 21:55 #
  5. Replace with:

    q = or $ [id, not] <*> [to be]

    Sunday, February 21, 2010 at 22:01 #