Re: Public mutable fields in deftype

2010-12-24 Thread nicolas.o...@gmail.com
After a few thoughts, I think this is a mistake not to allow this, even if it his highly discouraged. I think indeed, if you consider the data-structure usage of types and Objects it is a very bad idea to have a mutable private field. But some type you create are not for holding data on the

Public mutable fields in deftype

2010-12-23 Thread nicolas.o...@gmail.com
Dear all, Is there a way to make some mutable fields public in a deftype? Best regards, Nicolas -- 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

Re: Public mutable fields in deftype

2010-12-23 Thread Meikel Brandmeyer
Hi, Am 23.12.2010 um 15:26 schrieb nicolas.o...@gmail.com: Is there a way to make some mutable fields public in a deftype? I think it is opinionated, that this is not possible as the documentation states explicitly that the fields will be private when made mutable. You could write a special

Re: Public mutable fields in deftype

2010-12-23 Thread nicolas.o...@gmail.com
On Thu, Dec 23, 2010 at 9:28 PM, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 23.12.2010 um 15:26 schrieb nicolas.o...@gmail.com: Is there a way to make some mutable fields public in a deftype? I think it is opinionated, that this is not possible as the documentation states explicitly

Re: Public mutable fields in deftype

2010-12-23 Thread Meikel Brandmeyer
Hi, Am 23.12.2010 um 23:15 schrieb nicolas.o...@gmail.com: If I were to write such a patch, would it be accepted? I lean now quite a bit out the window, but I dare say: „No.“ The reason I think so is that this is opinionated. Sincerely Meikel -- You received this message because you are

Re: Public mutable fields in deftype

2010-12-23 Thread nicolas.o...@gmail.com
On Thu, Dec 23, 2010 at 10:29 PM, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 23.12.2010 um 23:15 schrieb nicolas.o...@gmail.com: If I were to write such a patch, would it be accepted? I lean now quite a bit out the window, but I dare say: „No.“ The reason I think so is that this is

Re: Public mutable fields in deftype

2010-12-23 Thread Alex Miller
I think that's an even more opinionated no. :) On Dec 23, 4:54 pm, nicolas.o...@gmail.com nicolas.o...@gmail.com wrote: On Thu, Dec 23, 2010 at 10:29 PM, Meikel Brandmeyer m...@kotka.de wrote: Hi, Am 23.12.2010 um 23:15 schrieb nicolas.o...@gmail.com: If I were to write such a patch,