Loading ...
Sorry, an error occurred while loading the content.

Re: [XP] Digest Number 4722

Expand Messages
  • Chris Riesbeck
    ... You mean like this one? http://sourceforge.net/forum/forum.php?thread_id=1031542&forum_id=195199
    Message 1 of 1 , Dec 27, 2004
    • 0 Attachment
      >From: Ron Jeffries <ronjeffries@...>
      >Subject: Re: Re: Yet Another Article ...
      >
      >On Monday, December 27, 2004, at 11:13:37 AM, aacockburn wrote:
      >
      >
      > > Here's my beef with inject:into: ...
      >
      > > ^ collection inject: 0 into: [ :sum :each | sum + each ]
      >
      > > absolutely does not convey to me in the slightest that this code is
      > > summing the values in the collection.
      >
      >Darn good point. It's hard to disagree. I suppose it's similar to
      >many uses of the ternary thing in C, ?: . In some usages, it's
      >clear, and in the rest, probably worth avoiding or at least
      >covering.

      You mean like this one?

      http://sourceforge.net/forum/forum.php?thread_id=1031542&forum_id=195199
    Your message has been successfully submitted and would be delivered to recipients shortly.