From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: if vs. when vs. and: style question Date: Wed, 25 Mar 2015 03:44:16 +0100 Organization: Aioe.org NNTP Server Message-ID: <87lhilx0cf.fsf@debian.uxu> References: <87sicvwckx.fsf@wmi.amu.edu.pl> <87wq27yvqg.fsf@debian.uxu> <8d531e99-7260-4263-ac99-09c6871e2708@googlegroups.com> <87vbhq53lf.fsf@debian.uxu> <87a8z23p23.fsf@kuiper.lan.informatimago.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427251524 3857 80.91.229.3 (25 Mar 2015 02:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Mar 2015 02:45:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 25 03:45:24 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1YabJm-0002kR-QJ for geh-help-gnu-emacs@m.gmane.org; Wed, 25 Mar 2015 03:45:18 +0100 Original-Received: from localhost ([::1]:35817 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YabJm-00043g-1C for geh-help-gnu-emacs@m.gmane.org; Tue, 24 Mar 2015 22:45:18 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: feB02bRejf23rfBm51Mt7Q.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:76CBBgRIZSxQUS1Ck8q0C3Tl7+U= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:211025 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:103306 Archived-At: "Pascal J. Bourguignon" writes: > But then, why stop with +? > > You could use instead: > > (funcall (additive-operator (ring integer)) > (neutral-element (multiplicative-operator (ring > integer))) 5) ; 6 > > or something even more general? OK, the rule should be respelled "the most general method wich is still instantly recognizable as serving its specific purpose". In this example, the data could be hard coded (with +), so it can be replaced easily when patterns appear (i.e., the sama data appears several times). So the data is hard coded now so not to be later (or, if it simply needs to be changed, as said). With `1+', in that case the operator would have to be replaced. But I don't want to do that and especially not if I can remedy the problem by just changing data. -- underground experts united