From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Damien Mattei Newsgroups: gmane.lisp.guile.user Subject: Re: Python slices in Scheme Date: Wed, 21 Jun 2023 09:45:19 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25066"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Wed Jun 21 09:46:19 2023 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qBsXi-0006K0-GY for guile-user@m.gmane-mx.org; Wed, 21 Jun 2023 09:46:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBsXL-0000PL-Uw; Wed, 21 Jun 2023 03:45:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBsX3-0000HT-75 for guile-user@gnu.org; Wed, 21 Jun 2023 03:45:41 -0400 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qBsX1-0007SW-9L for guile-user@gnu.org; Wed, 21 Jun 2023 03:45:36 -0400 Original-Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-51a324beca6so7415782a12.1 for ; Wed, 21 Jun 2023 00:45:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687333531; x=1689925531; h=cc:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=1Za6FcXo0RxXG7mhsne8Zc1zp+y+GWdSnD56cL1Ch4k=; b=lEdeQmIyvUa5v7Ayxb8cL0Wkcgir4I/dKlcthzG3dLc+mkTLEt2qMWHiUnrC3yjQ1z k+taHVzvecQvTP2TcJWeDnpQtV50YPj1ThAQ2qJutSmMvTNVNr0NvUexMMeSQqALKveH 3NUZCPCQyTbv5R115XxzcbQ/sl8dZ4lr8U30bNVJdAfOEjaLmVOeeVIukc7yJDxd2zNd 94CptQ5bZEsKa8EYM/U8yHAJbHA7sX1D0TiqiVVWziVfGBAxB8ULt4je7miZIMtcOyjc cSWQdoVngpIx3A/RmB8WzO/cQpfo+ojw+YupSlpuSsXZdB+PCaR0iKY5CMpz3GAIhDbo qWVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687333531; x=1689925531; h=cc: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=1Za6FcXo0RxXG7mhsne8Zc1zp+y+GWdSnD56cL1Ch4k=; b=UZtsXswGPVfZdKa3kvpKMlBgM1SGLyEpBFU4aqjxdYTwWpeTqY+mhsCa6VxA5iw7Sr 8gqWVdYZpIv16MVjll6k3wTu72UroqhXBO3E4uYItb9if2rKQRn7wBX8m1DxqZIHJtYZ /edhYHfC6iD4gaBT4qitQ06N/jpnwyiDJl/7l6WNMzAE20hdS+39HvzMID3eYYscfjcq WfvuJOcKZ2t2EvEsxU7cE++/UTwbz3QjzPMiqIKLsKIWUDMF+6B9CrSQ6gHa4gAAtEsv P+ZMrC5p0onmOOGT9lX2caiv+4YtyeHYDPi4zQ/Yxewa6mPnCH3z7/ltQhpSMElal5gp BhkA== X-Gm-Message-State: AC+VfDxnA9UUrm7+vaZwG1k4znLYHYF6xIxhdEyQ0jOTugJuBIEQDeIZ Ivs97cK66O6T2+nB9rBj+OqxrlQhLoQnYSYxvuwCEcwBChQ= X-Google-Smtp-Source: ACHHUZ5SUKOYxS661mXV4D4nesy213UmY31yd3ir6eHMuvOCp/K9HU0T3bYy1LUx49qBVfs2fgMFhwofz9xbL2IfJRI= X-Received: by 2002:aa7:db47:0:b0:51a:512b:1b2 with SMTP id n7-20020aa7db47000000b0051a512b01b2mr6344305edt.5.1687333531133; Wed, 21 Jun 2023 00:45:31 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=damien.mattei@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.user:19056 Archived-At: what troubled me is the uppercase in Front and the sense and i'm not easy with english as being french. Sexp i already know as symbolic expressions , that are in Scheme prefix expression but could also be infix or postfix, SRFI 105 being an infix reader for Scheme noted with curly syntax but they exist only at the reader stage before evaluation, only Scheme prefix expression are evaluated being converted from infix to prefix, it can be easily put in evidence when quoting an expression and displaying it as in this example: ;; Racket example '{#(1 2 3 4 5 6 7 8 9)[2 / 5 / 1]} '($bracket-apply$ #(1 2 3 4 5 6 7 8 9) 2 / 5 / 1) ;; Guile example scheme@(guile-user)> '{"0123456789"[5 / 2 / -1]} $2 =3D ($bracket-apply$ "0123456789" 5 / 2 / -1) note that in racket my SRFI 105 reader adaptation display the result quoted too:'($bracket-apply$ #(1 2 3 4 5 6 7 8 9) 2 / 5 / 1) but not of this happen in Guile, i really do not know what should be the good result in Scheme,anyway it i think it is only a representation, it does not change the computation when used in a program. Damien On Tue, Jun 20, 2023 at 1:23=E2=80=AFPM Robby Zambito wrote: > Jun 20, 2023 02:42:34 Damien Mattei : > > > what is Sexp Front? > > On X front is an idiom - search for "on that front" if you want to see > examples. > > Sexp refers to symbolic expressions, which is the typical syntax of Lisp. > > Robby >