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: Syntactic significance of dot Date: Mon, 22 Sep 2014 20:38:21 +0200 Message-ID: References: <1411409556.3458.145.camel@DebianBox.loc> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04427186509f130503abc14e X-Trace: ger.gmane.org 1411411126 566 80.91.229.3 (22 Sep 2014 18:38:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Sep 2014 18:38:46 +0000 (UTC) Cc: "guile-user@gnu.org" To: richard@rshann.plus.com Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Mon Sep 22 20:38:40 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 1XW8VU-0007TS-IT for guile-user@m.gmane.org; Mon, 22 Sep 2014 20:38:40 +0200 Original-Received: from localhost ([::1]:48282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8VT-0006Hf-LY for guile-user@m.gmane.org; Mon, 22 Sep 2014 14:38:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8VI-0006G0-N0 for guile-user@gnu.org; Mon, 22 Sep 2014 14:38:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XW8VH-0002Jm-65 for guile-user@gnu.org; Mon, 22 Sep 2014 14:38:28 -0400 Original-Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:64997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XW8VG-0002Hp-Ux for guile-user@gnu.org; Mon, 22 Sep 2014 14:38:27 -0400 Original-Received: by mail-we0-f178.google.com with SMTP id t60so3408196wes.9 for ; Mon, 22 Sep 2014 11:38:21 -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=2Eq5YEjEpeooOmPUkAs8iilXzbT4nlzvRfl2ztDSebE=; b=uUpSSs1LYbmfevjVRdj2micg08AViMzeKBPzRmL5TzDII4VK3UO+VhWS7nIO3r3zFd rRDXjVBAPOWxfixn/MTPbTuDYQMf72+2t3Cp+qp7YXI0bkkUG8BUQbKOFsMkOJJGUEck E/idvxn7yJaQP507Mv58K+/oblsn5F+hovOGM+iKARFdbeM7gCn7OKCO2s+/TYqcDzEV JhOuFt+gsLUkeey1k/RdtywHG8/UVonEz4w7zCGWo5Kk5aiEaj7LkDW9TWckUo8ttQjF EiUH5MXLb2eVvDDZC843G2QYrWBasCnJAYFr9YJ9r0A/2uGa3KArzBWNvKdwizCqnP9l h8hQ== X-Received: by 10.180.104.7 with SMTP id ga7mr17104748wib.36.1411411101128; Mon, 22 Sep 2014 11:38:21 -0700 (PDT) Original-Received: by 10.194.188.36 with HTTP; Mon, 22 Sep 2014 11:38:21 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::232 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:11544 Archived-At: --f46d04427186509f130503abc14e Content-Type: text/plain; charset=UTF-8 A little errata: > The limitation is that only one element can (and has to) appear after the > period, and at least one element needs to appear before it. Otherwise you > get a syntax voilation: > > '(1 2 . 3) > ===> (1 2 3) > Should be: ===> (1 2 . 3) Also, the dotted pair syntax and its eqivalent list syntax were both established by John McCarthy in his 1960 paper which introduced LISP to the world: http://www-formal.stanford.edu/jmc/recursive/recursive.html (section 3) --f46d04427186509f130503abc14e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
A little errata:
=C2=A0
The limitation is that onl= y one element can (and has to) appear after the period, and at least one el= ement needs to appear before it. Otherwise you get a syntax voilation:

'(1 2 . 3)
=3D=3D=3D> (1 2 3)

Should be:
=3D= =3D=3D> (1 2 . 3)

Also, the dotted pair syntax = and its eqivalent list syntax were both established by John McCarthy in his= 1960 paper which introduced LISP to the world:

<= /div>
--f46d04427186509f130503abc14e--