From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Panicz Maciej Godek Newsgroups: gmane.lisp.guile.user Subject: Re: A couple of questions about goops method parameters Date: Fri, 5 Sep 2014 21:03:08 +0200 Message-ID: References: <1409905923.9245.5.camel@Renee-desktop.suse> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1409943815 22528 80.91.229.3 (5 Sep 2014 19:03:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Sep 2014 19:03:35 +0000 (UTC) Cc: Carlos Pita , "guile-user@gnu.org" To: Nala Ginrut Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Sep 05 21:03:24 2014 Return-path: Envelope-to: guile-user@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 1XPyn5-00026Z-S7 for guile-user@m.gmane.org; Fri, 05 Sep 2014 21:03:23 +0200 Original-Received: from localhost ([::1]:59817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPyn5-0003ju-Dz for guile-user@m.gmane.org; Fri, 05 Sep 2014 15:03:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPyms-0003jZ-V1 for guile-user@gnu.org; Fri, 05 Sep 2014 15:03:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPymr-0008IB-Nw for guile-user@gnu.org; Fri, 05 Sep 2014 15:03:10 -0400 Original-Received: from mail-vc0-x234.google.com ([2607:f8b0:400c:c03::234]:44061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPymr-0008I4-J6 for guile-user@gnu.org; Fri, 05 Sep 2014 15:03:09 -0400 Original-Received: by mail-vc0-f180.google.com with SMTP id lf12so12930704vcb.11 for ; Fri, 05 Sep 2014 12:03:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=8rMPka5DiZikAIOKeArmnmpeTlmMrfN+1nZ9Wfh5j30=; b=vsaLkPtSO2lTP0enU1qZDjN8x049rHe4t8e4Ix+KP3EpoLc6QB0u4+sVDKz2sqGM9M 4GQWg0YcFMbvTShCv8GuaqWctbpGU3DTsgIW4yeoLStvwkAVJMvLCRoWAWNKAnk4YO1D AsgVHHGXGlHLhlkvnLgJr33eOnlVz+WgNfC1GnHgHlY6444TfXngMWPAsP6fp26rW+Ey 9RXSUCmVycCToKcrZNW+yXgkAjaCR43/+dGcZmCYT2fkq3tEvoLBWqahJs2Oaj+99wIe BOUz8keNbLs2ze99j9e/QppAW0H+cskTtyaatdhzWr48OJU22XsmZ+NriEBED3u6j9NN bQ0A== X-Received: by 10.221.64.142 with SMTP id xi14mr3378347vcb.31.1409943788745; Fri, 05 Sep 2014 12:03:08 -0700 (PDT) Original-Received: by 10.221.66.79 with HTTP; Fri, 5 Sep 2014 12:03:08 -0700 (PDT) In-Reply-To: <1409905923.9245.5.camel@Renee-desktop.suse> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400c:c03::234 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:11459 Archived-At: 2014-09-05 10:32 GMT+02:00 Nala Ginrut : > Hi Carlos! > > On Tue, 2014-09-02 at 23:05 -0300, Carlos Pita wrote: > >> 2) What is the relationship between the lambda* family and methods? >> Are methods restricted in the sense that they can't aspire to get the >> greater flexibility of lambda* parameter handling? Maybe because of >> the way dispatching is done? >> > > IMO, when you have lambda*, you never need define-method. Actually, I > want to say, once you have such FP features, you don't need OOP anymore. So perhaps you could tell me how to design a GUI framework in FP and without OOP. To me it seems that GUI is the main domain the OOP was crafted for, but if you have some nice functional ideas, perhaps you could help me to redesign my framework. The base of the framework can be browsed here: https://bitbucket.org/panicz/slayer/src/94c9dde264759cbbd8d4a88d2581b77f55cc0bd6/guile-modules/widgets/base.scm?at=default What is particularly relevant is the class. I recently started creating my own OOP framework atop of GOOPS, so the same class could be equivalently written as https://bitbucket.org/panicz/slayer/src/94c9dde264759cbbd8d4a88d2581b77f55cc0bd6/guile-modules/extra/noobs.scm?at=default (see at the bottom) But I don't see any good alternative to OOP.