23 Apr 02:25
Re: Interesting use of 'fry'
From: Slava Pestov <slava@...>
Subject: Re: Interesting use of 'fry'
Newsgroups: gmane.comp.lang.factor.general
Date: 2008-04-23 00:25:29 GMT
Subject: Re: Interesting use of 'fry'
Newsgroups: gmane.comp.lang.factor.general
Date: 2008-04-23 00:25:29 GMT
Hi Chris, Good point. Having thought about it a little, I think with multimethods I'd use the following design: - render-view*, render-summary* and render-edit* replaced by render* taking a singleton symbol (view, summary, edit) - render-list takes this symbol instead of a quotation In this case, I could certainly use multi-methods for render-list. I'm looking forward to having multi-methods in the coreSlava On Apr 22, 2008, at 7:18 PM, Chris Double wrote: > Maybe use multimethods to get rid of the case and the > render-plain-list, render-ordered-list, etc? Or does this interfere > with the need to inline the code since it uses quotations? The fry > stuff does make it look nice. > > Chris. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save > $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone > _______________________________________________ > Factor-talk mailing list > Factor-talk@... > https://lists.sourceforge.net/lists/listinfo/factor-talk ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Slava
On Apr 22, 2008, at 7:18 PM, Chris Double wrote:
> Maybe use multimethods to get rid of the case and the
> render-plain-list, render-ordered-list, etc? Or does this interfere
> with the need to inline the code since it uses quotations? The fry
> stuff does make it look nice.
>
> Chris.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save
> $100.
> Use priority code J8TL2D2.
>
RSS Feed