Re: anyone define port types?

2016-03-30 Thread Marko Rauhamaa
Jan Wedekind : > On Wed, 30 Mar 2016, Marko Rauhamaa wrote: >> GOOPS' has the worst possible object model: objects are seen as mere >> data records. The concept of a "slot" is an anathema to OOP. > > Ok, I have updated the example to use accessor functions instead of >

Re: anyone define port types?

2016-03-30 Thread Jan Wedekind
On Wed, 30 Mar 2016, Marko Rauhamaa wrote: Jan Wedekind : GOOPS supports "open" classes and multiple-dispatch. E.g. you can extend the "write" method to control how an object is displayed within the Guile REPL [1]. Another interesting approach are multi-methods in Clojure

Re: anyone define port types?

2016-03-30 Thread Jan Wedekind
On Wed, 30 Mar 2016, Marko Rauhamaa wrote: Panicz Maciej Godek : 2016-03-30 13:18 GMT+02:00 Jan Nieuwenhuizen : Panicz Maciej Godek writes: I also used GOOPS, which I regret to this day, and so the whole framework needs a serious rewrite What is

Re: anyone define port types?

2016-03-30 Thread Marko Rauhamaa
Jan Wedekind : > GOOPS supports "open" classes and multiple-dispatch. E.g. you can extend > the "write" method to control how an object is displayed within the > Guile REPL [1]. Another interesting approach are multi-methods in > Clojure which don't even require explicit types

Re: anyone define port types?

2016-03-30 Thread Marko Rauhamaa
Panicz Maciej Godek : > 2016-03-30 19:53 GMT+02:00 Marko Rauhamaa : > The problem with closures is, among others, that they are > non-serializable What is there to serialize in objects? How do you serialize a car? How do you serialize an ant? How do you

Re: anyone define port types?

2016-03-30 Thread Panicz Maciej Godek
2016-03-30 19:53 GMT+02:00 Marko Rauhamaa : > I like OOP, only I don't like GOOPS. Its classes and generic functions > seem so idiomatically out of place, unschemish, if you will. > > This is how OOP ought to be done: > >

Re: anyone define port types?

2016-03-30 Thread Panicz Maciej Godek
2016-03-30 13:18 GMT+02:00 Jan Nieuwenhuizen : > Panicz Maciej Godek writes: > > > I also used GOOPS, which I regret to this day, and so the > > whole framework needs a serious rewrite > > What is it that you do not like about GOOPS? Most specifically, I dislike its middle

Re: anyone define port types?

2016-03-30 Thread Jan Nieuwenhuizen
Panicz Maciej Godek writes: > I also used GOOPS, which I regret to this day, and so the > whole framework needs a serious rewrite What is it that you do not like about GOOPS? I have a project that may be in the same position. I used GOOPS initially, then rewrote it to use either GOOPS, plain

Re: anyone define port types?

2016-03-30 Thread Panicz Maciej Godek
Hi Andy, I have been using soft ports to implement a text widget in my GUI framework. I also used GOOPS, which I regret to this day, and so the whole framework needs a serious rewrite, but if you're collecting various species to the museum of make-soft-port, you can have a look: