Re: GOOPS functional setter

2017-01-15 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sat, Jan 14, 2017 at 03:16:10PM -0600, Christopher Allan Webber wrote: > to...@tuxteam.de writes: > > > Curiously, Jan (also in this thread) came up with "clone", > > independently. > > Yes you're right. :) > > Speaking of Jan and I both thinking

Re: GOOPS functional setter

2017-01-14 Thread Christopher Allan Webber
to...@tuxteam.de writes: > Curiously, Jan (also in this thread) came up with "clone", > independently. Yes you're right. :) Speaking of Jan and I both thinking about clone'ish things, we did a bit of talking on IRC and I think we have a very nice version of functional setters where you can "clon

Re: GOOPS functional setter

2017-01-14 Thread Arne Babenhauserheide
to...@tuxteam.de writes: > [fset vs clone] > >> I think cloning isn't as clear; what we want is something that's the >> same as the previous instance of the object, but with one field changed. > Yes, and after having read your post I understood where you came from. > The naming wouldn't have been

Re: GOOPS functional setter

2017-01-14 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jan 13, 2017 at 08:11:28PM -0600, Christopher Allan Webber wrote: > to...@tuxteam.de writes: [fset vs clone] > I think cloning isn't as clear; what we want is something that's the > same as the previous instance of the object, but with one fi

Re: GOOPS functional setter

2017-01-13 Thread Christopher Allan Webber
to...@tuxteam.de writes: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Fri, Jan 13, 2017 at 01:09:57PM -0600, Christopher Allan Webber wrote: >> I guess I never sent this to this list. Here's a functional setter for >> GOOPS classes. >> >> Maybe nobody else would use it, but I've used

Re: GOOPS functional setter

2017-01-13 Thread Jan Nieuwenhuizen
Christopher Allan Webber writes: > I guess I never sent this to this list. Here's a functional setter for > GOOPS classes. Hah! Just this week I have been wondering the perceived absense of functional setters (and figured I *must* have missed something somewhere) and wrote --8<---c

Re: GOOPS functional setter

2017-01-13 Thread tomas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, Jan 13, 2017 at 01:09:57PM -0600, Christopher Allan Webber wrote: > I guess I never sent this to this list. Here's a functional setter for > GOOPS classes. > > Maybe nobody else would use it, but I've used it in a couple of projects > now, so

GOOPS functional setter

2017-01-13 Thread Christopher Allan Webber
I guess I never sent this to this list. Here's a functional setter for GOOPS classes. Maybe nobody else would use it, but I've used it in a couple of projects now, so figure I might as well share. This is LGPLv3+. Feel free to use. == ;; By Chri