On Sunday, August 5, 2012 1:10:04 PM UTC-4, Nicolas Oury wrote:
>
> Constructors are not a good idea, because they tie the functionality 
> to the implementation. 
>
>
> You want to be able to change your record to something else without 
> changing your client code. 
>

My answer to this is: everything is an implementation at some level. So do 
you think we need factory functions of factory functions, and factory 
functions of factory functions of factory functions? I am sure that will be 
more flexible than just one level of factory functions.

I am not against of using factory functions all together. The 
user/programmer obviously needs to make some judgment himself what fits his 
problem/aplication. And the language should be there to provide the tools 
that fit the job.





 

-- 
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