ComeFromification is also quite a useful construct:

## Ruby implementation of the Intercal COME FROM statement#
 $come_from_labels = {}
 def label(l)
    if $come_from_labels[l]
        $come_from_labels[l].call
    endend
 def come_from(l)
    callcc do |block|
        $come_from_labels[l] = block
    endend


(from 
http://en.wikipedia.org/wiki/COMEFROM)<http://en.wikipedia.org/wiki/COMEFROM>

On Wed, Mar 11, 2009 at 12:05 AM, Josh Price <[email protected]> wrote:

> "For the lazy programmer who can't be bothered to scroll up to add some
> code"
>
> He does add "any use of this module should be considered a bug" somewhat
> ruining the joke.
>
> He does save it however with the brilliant word of the week:
> ButFirstification
>
> Made my day.
>
> Cheers,Josh
>
>
> On 10/03/2009, at 22:29, Torm3nt <[email protected]> wrote:
>
> I don't see why that module would be of any use, other than a gimmick. Imo,
> all it does is decrease readability, kind've like the old days of GOTO 15.
>
> Kirk
>
> On Tue, Mar 10, 2009 at 10:27 PM, Julio Cesar Ody < <[email protected]>
> [email protected]> wrote:
>
>>
>> At one stage I seriously thought about implementing ButFirst.pm in
>> Ruby. I couldn't think of a nice way that would make it work as nicely
>> as in Perl, but who knows, maybe in 1.9.
>>
>>
>> On Tue, Mar 10, 2009 at 9:56 PM, Chris Lloyd
>> < <[email protected]>[email protected]> wrote:
>> > Julio, my man, you have just inspired me to learn Perl. That is awesome.
>> > I personally love the Hash syntax.
>> > {
>> >   'start' => 'end'
>> > }.each{|target, destination| `ln -s #{target} #{destination}` }
>> > {
>> >   Klass => :method
>> > }.collect{|k,m| k.send(m) }
>> > It's just a beautiful way of signifying all sorts of things. Though Obie
>> > beat me to it. Similarly, I also like how Ruby only has two
>> > standard implementations of collections, not 11.
>> >
>> > On Tue, Mar 10, 2009 at 8:06 PM, Perryn Fowler < <[email protected]>
>> [email protected]> wrote:
>> >>
>> >> > Symbol-to-proc, and the use of `&` to coerce things to procs:
>> >> >
>> >> > [1,2,3,4,5].select(&:odd?)
>> >>
>> >> personally I have never liked this.
>> >>
>> >> It is one of those idioms where you have to know what it does to know
>> >> what it does. I prefer readability over terseness every time.
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > chrislloyd.com.au
>> >
>> > >
>> >
>>
>>
>>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to