From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 7419E3858D37 for ; Sat, 7 Oct 2023 16:34:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7419E3858D37 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-ej1-x636.google.com with SMTP id a640c23a62f3a-9ae2cc4d17eso566512266b.1 for ; Sat, 07 Oct 2023 09:34:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696696474; x=1697301274; darn=sourceware.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wvEugF5aT1lzyA4UmNT+Zz/JlAuqeehAOH4NLcdcsZQ=; b=e/k9QcoA2xsQR1F370VdNxqBlCsZn4UHHhQ6R1x+n+vdqXcAF2ok9wWsFCQ48OgF/M bXRaC6hr/L8LixFpaz2J9tvs+jAYQo6tF8qTB5emB1UCMPvptnVjRB+Pex6E4PlF6PTt zUupYUEERFVDrgASawM7CYIBjx3SKAjAE7JZb84v+sgXt/o9ZRpdHDDrnYa/m3dCOv+T pWoEtr2DmdXHE3L+cP9KunFU/TfJLUt0bXSBqImydhNzXCQk2xG59neq5TA5uLv+1Wxb OT8V13wkO+MNlcMmHvPJnbOlNd6FtHvc8Kv5WUshe8482JNX1D0nZkBJZYO86fkH2ToE Eigw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696696474; x=1697301274; h=content-transfer-encoding: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=wvEugF5aT1lzyA4UmNT+Zz/JlAuqeehAOH4NLcdcsZQ=; b=Or5quOc0ZPRIdZxJ3W+cL5N8A3cwXz5O0bGLcutLLrC5uAaEcZgAGc3nj+kkO0i11X XvFEdD+nvdLz87/O1fgi3hVwh4GWvJWPlMhVwddIOXnjDcN5TB5OJVrVtfVxfjImAfSM +uVrAl4h1PoED1C4+P7WdfhplM/rTacq4/s/Fu4iWcUhdbQr2jV1doknK19xqgplLngo ENtmaNWhJZWncZV5ziopSlKKBd6/TL5fK+054JubpHVsdZhCkH5AuAax3FkkVRdrSWQY wWVpQDS0I2GnpLoBVpsxKuZLeDtPKi9tWNYsA9yd3uSxLrza9e8S0sD/ZvxOygWaMMp0 CEIw== X-Gm-Message-State: AOJu0Yy7iJ/Uv2y/2ZElStKBELID4uIWimYpr61YgYHwbbsVlzfkWOAD bL3szVWnTSjRDJEFVnjpQzDg2rTdqWem5V0M9uaY8gzWXzw= X-Google-Smtp-Source: AGHT+IHLmEQvK0rTw/3DM7B8Ua3KcdDbRSaSNco2Je5Owgf40pSRdZ2FBqap3Cyn0a/NAgadU1H+sw0qkI6xTICpilY= X-Received: by 2002:a17:906:7692:b0:9b2:a7e1:3708 with SMTP id o18-20020a170906769200b009b2a7e13708mr10875586ejm.21.1696696473842; Sat, 07 Oct 2023 09:34:33 -0700 (PDT) MIME-Version: 1.0 References: <2dee812b-56a9-bba0-bb63-666f8866007b@bothner.com> In-Reply-To: From: Damien Mattei Date: Sat, 7 Oct 2023 18:34:22 +0200 Message-ID: Subject: Re: unrecognized syntax: type[args] To: Per Bothner Cc: kawa mailing list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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: i understand that in kawa there is an immediate evaluation of $bracket-appl= y$ but here i'm using $bracket-apply$ as a procedure (was a macro in the past) that will be evaluated later at a point container-eval and expr-eval are known. And container-eval and expr-eval are not type in my code but variable that could be vector,string,hash-table,arrays.... all that could be indexing by one or more indexes.... [ ] as operator.... On Sat, Oct 7, 2023 at 6:30=E2=80=AFPM Damien Mattei wrote: > > yes it it what i'm understanding: > > $bracket-apply$ > #> > > so Kawa already use $bracket-apply$ ,part of SRFI 105 but where is it > documented i have to deal with that in relation with use i do within > my code (i can of course rename $bracket-apply$ as i control the > reader now...) > > lot of thing to understand before action.... > > On Sat, Oct 7, 2023 at 5:35=E2=80=AFPM Per Bothner wrot= e: > > > > > > > > On 10/7/23 08:02, Damien Mattei via Kawa wrote: > > > > > #|.....19|# (for ((<+ k i2) (>=3D k i1) (<- k (+ k step))) > > > #|.....20|# (<- ($bracket-apply$ container-eval k) > > > ($bracket-apply$ expr-eval i)) > > > #|.....25|# (<- i (+ i 1))))) > > > /dev/tty:20:44: unrecognized syntax: type[args] > > > /dev/tty:24:44: unrecognized syntax: type[args] > > > > > > > > > what does it means? > > > > It is referring to the ($bracket-apply$ container-eval k) and > > ($bracket-apply$ expr-eval i) which are de-sugarings of > > container-eval[k] and expr-eval[i]. > > > > Specifically, container-eval and expr-eval are not valid known types. > > -- > > --Per Bothner > > per@bothner.com http://per.bothner.com/