News for hackers. Stuff that matters.
Re:What's Special About Lisp? by lattepiu on Wednesday August 03, 2011 @08:49AM (#2840912)
I don't believe this is a good example. Ruby has case..when instead of COND, though it's a language construct, not a function; but I think COND can be trivially implemented in any language that has anonymous functions. In Ruby:

  def COND(*args)
      args.each_slice(2){ |s| return s[1].call if s[0].call }
  end

  COND(lambda{ false }, lambda{ "not this"}, lambda{ true }, lambda{ "this" })
(not a lisper, though, so I might be missing something).

There are no comments on this comment yet.