From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich B.) Newsgroups: gmane.lisp.guile.devel Subject: Re: [PATCH] Replace define-macro with syntax-rules Date: Mon, 30 Sep 2013 21:24:27 +0200 Message-ID: <87ioxigljo.fsf@taylan.uni.cx> References: <1380345956-1720-1-git-send-email-KAction@gnu.org> <87mwmxgs1u.fsf@taylan.uni.cx> <87eh87bbyt.fsf@Kagami.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1380569084 31001 80.91.229.3 (30 Sep 2013 19:24:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Sep 2013 19:24:44 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Sep 30 21:24:47 2013 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 1VQj5K-0002lk-Ds for guile-devel@m.gmane.org; Mon, 30 Sep 2013 21:24:46 +0200 Original-Received: from localhost ([::1]:51296 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQj5J-0001Mf-T1 for guile-devel@m.gmane.org; Mon, 30 Sep 2013 15:24:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36743) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQj5C-0001MT-Fq for guile-devel@gnu.org; Mon, 30 Sep 2013 15:24:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VQj55-0003MV-SW for guile-devel@gnu.org; Mon, 30 Sep 2013 15:24:38 -0400 Original-Received: from mail-ea0-x230.google.com ([2a00:1450:4013:c01::230]:40372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VQj55-0003Lx-LH for guile-devel@gnu.org; Mon, 30 Sep 2013 15:24:31 -0400 Original-Received: by mail-ea0-f176.google.com with SMTP id q16so2926418ead.35 for ; Mon, 30 Sep 2013 12:24:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:references:date:in-reply-to:message-id:user-agent :mime-version:content-type; bh=nREw+halArKMEIGHHL2IxqjisX0S2qSfOju0RFvwfjI=; b=hCgS/xAFy8HU3mzqFezQsVIPQ4IObDK0jJDol/+1bxT6ieU8pNQ4plb9VmlEcYXGdI J7y7bcjw+0Td0ljrZtR3mW/Vlzm+dHG3t5W3nDxOM+ICw6is6yLH4QUYIBh+YYhFjFtv VjpJbYn7EZnHrK1CQTiszWo7xzDEyNqQEPCK93ZJO0KIWu/8V9Nm/Quda6d90KnD9vEz /SiDr8sHvFZidD5BZ5RM1G0j2Dd/SPDuMG6i+61L8KPlwtiokzw24eg3WnIricwQRbd9 4nvmlSuR80veCUUJ8ETzYL72ljbrHGMfSVEwaFdNmtTsKNVziNvPlh//psJADnUVbl48 Xvrg== X-Received: by 10.15.98.9 with SMTP id bi9mr5340309eeb.67.1380569070275; Mon, 30 Sep 2013 12:24:30 -0700 (PDT) Original-Received: from taylan.uni.cx (p4FD90E66.dip0.t-ipconnect.de. [79.217.14.102]) by mx.google.com with ESMTPSA id h45sm4469228eeg.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 30 Sep 2013 12:24:29 -0700 (PDT) In-Reply-To: <87eh87bbyt.fsf@Kagami.home> (Ian Price's message of "Sun, 29 Sep 2013 21:38:02 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4013:c01::230 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:16657 Archived-At: Ian Price writes: > taylanbayirli@gmail.com (Taylan Ulrich B.) writes: > >> (define-syntax endianness >> (syntax-rules () >> ((_ big) 'big) >> ((_ little) 'little))) > Except now whenever you use it, you only ever get big endianness. You > forgot to add big and little to the literals list. Doh! Can't believe I made such a mistake, must write more Scheme. :) Well, actually, it will still coincidentally work because the `big' in `'big' (`(quote big)') will refer to the pattern variable. (Essentially we made an alias to `quote'.)