From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marko Rauhamaa Newsgroups: gmane.lisp.guile.devel,gmane.lisp.guile.user Subject: Re: anyone define port types? Date: Thu, 31 Mar 2016 01:44:18 +0300 Message-ID: <87egarvb5p.fsf@elektro.pacujo.net> References: <87y492mnjp.fsf@pobox.com> <87io046wp7.fsf@drakenvlieg.flower> <87a8lfx37i.fsf@elektro.pacujo.net> <87shz7vifl.fsf@elektro.pacujo.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1459377876 10225 80.91.229.3 (30 Mar 2016 22:44:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 30 Mar 2016 22:44:36 +0000 (UTC) Cc: Andy Wingo , "guile-user@gnu.org" , guile-devel To: Jan Wedekind Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Mar 31 00:44:36 2016 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1alOqo-00075K-G8 for guile-devel@m.gmane.org; Thu, 31 Mar 2016 00:44:34 +0200 Original-Received: from localhost ([::1]:57069 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alOqn-0008Lw-Er for guile-devel@m.gmane.org; Wed, 30 Mar 2016 18:44:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alOqe-00089D-4b for guile-devel@gnu.org; Wed, 30 Mar 2016 18:44:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1alOqd-0004eA-Ah for guile-devel@gnu.org; Wed, 30 Mar 2016 18:44:24 -0400 Original-Received: from [2001:1bc8:1a0:5384:7a2b:cbff:fe9f:e508] (port=37154 helo=pacujo.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1alOqa-0004dm-W9; Wed, 30 Mar 2016 18:44:21 -0400 Original-Received: from elektro.pacujo.net (192.168.1.200) by elektro.pacujo.net; Thu, 31 Mar 2016 01:44:18 +0300 Original-Received: by elektro.pacujo.net (sSMTP sendmail emulation); Thu, 31 Mar 2016 01:44:18 +0300 In-Reply-To: (Jan Wedekind's message of "Wed, 30 Mar 2016 22:01:41 +0100 (BST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:1bc8:1a0:5384:7a2b:cbff:fe9f:e508 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:18261 gmane.lisp.guile.user:12535 Archived-At: 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 > "slot-ref". (get-x) is only a fig leaf for (slot-ref). In general, no user of an object should think the object holds a piece of information called x. Instead, you should be interacting with the abstract object . Python people call it duck-typing. Java, Go et al use interfaces. Even C can do opaque structs. C++ suffers from "private" data members, and GOOPS strips away even that thin veil. Remember: [...] during her journey south to be married, the young queen-to-be passed through a town that was famed for its silk stockings, then rare and expensive items. Wishing to show her due courtesy, the merchants of the town offered to present her with a pair. [...] The Queen=E2=80=99s courtiers were aghast at this embarrassing breach of dec= orum, regarded as both indecent and audacious, and one replied loftily that =E2=80=9CThe Queen of Spain has no legs=E2=80=9D. Marko