Baishampayan
I didn't know `map->Foo`. Thank you for the infomation!

On Monday, July 23, 2012 2:11:45 PM UTC+9, Baishampayan Ghose wrote:
>
> On Mon, Jul 23, 2012 at 10:37 AM, Takahiro Hozumi <fat...@googlemail.com> 
> wrote: 
> > 2. The construction of record depends on an order of arguments. 
> > Sometimes, I feel that a lack of construction with key-value style is 
> not 
> > convenient. 
>
> (defrecord Foo ... 
>
> will give you `->Foo` & `map->Foo` for free. The second one accepts a 
> map as input. 
>
> Regards, 
> BG 
>
> -- 
> Baishampayan Ghose 
> b.ghose at gmail.com 
>

On Monday, July 23, 2012 2:11:45 PM UTC+9, Baishampayan Ghose wrote:
>
> On Mon, Jul 23, 2012 at 10:37 AM, Takahiro Hozumi <fat...@googlemail.com> 
> wrote: 
> > 2. The construction of record depends on an order of arguments. 
> > Sometimes, I feel that a lack of construction with key-value style is 
> not 
> > convenient. 
>
> (defrecord Foo ... 
>
> will give you `->Foo` & `map->Foo` for free. The second one accepts a 
> map as input. 
>
> Regards, 
> BG 
>
> -- 
> Baishampayan Ghose 
> b.ghose at gmail.com 
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to