<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 1:05 PM, Casey Ransberger <span dir="ltr"><<a href="mailto:casey.obrien.r@gmail.com" target="_blank">casey.obrien.r@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The influence of Smalltalk on Ruby is well known, and is in fact how I found you people:)<br>
<br>
Particularly striking is Ruby's block/closure syntax. Looks almost the same, which sticks out like a sore thumb in a dot and curly language. In the most recent versions I think they've even added keyword messages.<br>
<br>
Awesome to know where #collect: came from. I wondered about that; given that the guy running the LRG was fond of LISP, I would have expected it to be called #map:.<br></blockquote><div><br></div><div>Dan posted last week that the collect:, detect:, inject:, reject:, select: suite was inspired by Arlo Guthrie's "Alice's Restaurant Massacre":</div>
<div><br></div><div>"<span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">They got a building down New York City, it's called Whitehall Street,</span></div><span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">where you walk in, you get injected, inspected, detected, infected,</span><br style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">
<span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">neglected and selected. I went down to get my physical examination one</span><br style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">
<span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">day, and I walked in, I sat down, got good and drunk the night before, so</span><br style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">
<span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">I looked and felt my best when I went in that morning. `Cause I wanted to</span><br style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">
<span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">look like the all-American kid from New York City, man I wanted, I wanted</span><br style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">
<span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">to feel like the all-, I wanted to be the all American kid from New York,</span><br style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">
<span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">and I walked in, sat down, I was hung down, brung down, hung up, and all</span><br style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">
<span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">kinds o' mean nasty ugly things. And I waked in and sat down and they gave</span><br style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">
<span style="color:rgb(0,0,0);font-family:proxnov-reg,arial,sans-serif;font-size:medium;line-height:16px">me a piece of paper, said, "Kid, see the psychiatrist, room 604."</span><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
I think the Ruby collections have #map() as a synonym for #collect(), reflecting the language's dual heritage. I've always used collect though because it makes me think of baseball cards!<br>
<div class=""><div class="h5"><br>
> On Apr 29, 2014, at 9:48 AM, Göran Krampe <<a href="mailto:goran@krampe.se">goran@krampe.se</a>> wrote:<br>
><br>
>> On 04/29/2014 06:41 PM, tim Rowledge wrote:<br>
>><br>
>>> On 29-04-2014, at 9:30 AM, Göran Krampe <<a href="mailto:goran@krampe.se">goran@krampe.se</a>> wrote:<br>
>>><br>
>>> ...now... where do we stuff in #neglect:? :)<br>
>><br>
>> Clearly, aCollection neglect: [:item| item size > myFoo] would return a WeakArray of elements matching the block criterion; then when nobody is paying much attention they can be garbage collected.<br>
><br>
> I like it. Personally was thinking that neglect could work similar to reject but instead return a wrapper using the first collection as a "backend". So it uses the same collection but "neglects" those elements not matching :)<br>
><br>
> Dynamically add some nasty Trait?<br>
><br>
> regards, Göran<br>
><br>
<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>