From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) by sourceware.org (Postfix) with ESMTPS id 399C03858C83 for ; Fri, 3 Mar 2023 08:30:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 399C03858C83 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qt1-x835.google.com with SMTP id y10so2094436qtj.2 for ; Fri, 03 Mar 2023 00:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1677832202; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TDqcexAeR2/72kHXILOjvVU5tq2uVbF5jrvo522v9ic=; b=ebGpqRuQ/u93fLGyaSB3iVwUILAcsUvDZCYtH5Cm/ffIFdkGu8VHQRRswPvtKH2apn xRKN6JONdKJG7ku1adc1Q7mqeFIdLsVJkhwokeJ9uQ+uKYGHGvPStpFSsZDLv9BWZmSU b7QC+OXMIfjMVPUg4KEErGQTOMR0Y+RXeD4QdV62fllHJ4xPnGlgKg9b7bTdEDhbCqrv jYvOTSalBMQ2gveB5oBS5CkaoJvxpVMi/md6S5Ux4mEl/nX30efikwzvdSEE3IgrjmLW ilTrNbUCyEIo7OgNkRz35c33OrN0xCn9UGMxAvQHwOHb2rp5B28mcu8uOd9X6WtqaA/e onhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1677832202; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TDqcexAeR2/72kHXILOjvVU5tq2uVbF5jrvo522v9ic=; b=Lk0oeO2rugTUrajUw7Xh8gsE2H45U85Zwl1h5oPBSVdQesIuzyCE05SAtuRAba17lf nPbWUtiatRWOZp277bZG4R8g9YSmvZ6CqUzjoCboV+oyAHXeNacept+xKW5qFDo4FmDP fQxyNrHYmluxOvij1V2W/GwKA9BFDhnbG0J85+bCVUFbMEpZAz0ddmxqnHPFNY3pYJWe RK3xUbyKy9c4iYQn9Gzawjbds7QeVd6dHknhaRddQb2jnOcxvlBIYnpG5q0I0qSbk4Gr v2BmZxttEg5luikGchH0zGWCbAh3PwEFqrMXiRnnCKwti/ybPQjumnvRDyCH8u5/NuHE YmqA== X-Gm-Message-State: AO0yUKXRLN2KCfp2+mvL1luN3Cbgz+e/pAJGm+r7W9qK8C8+pFG5+fp9 mxd63bdAW1G0eTn97yKgQREwhkM2vp8c6/W7IYlEN13XEFoxRHWS X-Google-Smtp-Source: AK7set9Nl5+RTOxTtApXrroCGebiWzXns927mlnVCgyatphxcrf/DQHv0DDepI7ZijQDHkvqdO1rEWljpKsl3f9e9d8= X-Received: by 2002:ac8:6102:0:b0:3bf:bbd1:4c1b with SMTP id a2-20020ac86102000000b003bfbbd14c1bmr309315qtm.7.1677832202519; Fri, 03 Mar 2023 00:30:02 -0800 (PST) MIME-Version: 1.0 References: <1dccac2d-bf49-9326-446d-6b00d77595a3@bothner.com> <35395.1677831449@napur.eip10.org> In-Reply-To: <35395.1677831449@napur.eip10.org> From: Panicz Maciej Godek Date: Fri, 3 Mar 2023 09:29:51 +0100 Message-ID: Subject: Re: A bug in Kawa reader To: Sudarshan S Chawathe Cc: Per Bothner , kawa Content-Type: multipart/alternative; boundary="0000000000006c899105f5fac02e" X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --0000000000006c899105f5fac02e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable pt., 3 mar 2023 o 09:17 Sudarshan S Chawathe napisa=C5=82(= a): > On 2023-03-03T08:45:20+0100 (Friday), Panicz Maciej Godek via Kawa writes: > > czw., 2 mar 2023 o 23:30 Per Bothner napisa=3DC5=3D82= (a): > > > > > > > > > > > On 3/2/23 14:14, Panicz Maciej Godek via Kawa wrote: > > > > I've noticed that if there's an escaping slash at the end of a line > > > inside > > > > of a string, and the new line starts with white spaces, the white > space=3D > > s > > > > will be chomped away from the resulting string > > > > > > That's an intended (and documented) feature. > > > > > > > > > > https://www.gnu.org/software/kawa/String-literals.html#Simple-string-lite= =3D > > rals > > > > > > > > You're right. > > I also checked it with the spec, and it doesn't determine this behavior. > > > > Kawa seems to behave like Gambit, Chicken and Chez in this regard, > > whereas Guile and Racket behave according to my expectation. > > > > Sorry for the noise. > > I am not sure of the spec to which you refer but R7RS Section 6.7 > includes, in the itemized list of escape sequences, > > \* > * : nothing > > which is the behavior you observed in Kawa, etc. > > I checked with R5RS, which said (in section 6.3.5): "Scheme does not specify the effect of a backslash within a string that is not followed by a doublequote or backslash." > I find it to be a useful feature for fitting long strings in nicely > indented code. > > I've found it quite surprising, to be honest. --0000000000006c899105f5fac02e--