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: symbol is nested in #{ ...... }# Date: Thu, 4 Jan 2024 21:12:42 +0100 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="9751"; mail-complaints-to="usenet@ciao.gmane.io" Cc: guile-user To: "Thompson, David" Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Thu Jan 04 21:13:43 2024 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 1rLU63-0002N5-BE for guile-user@m.gmane-mx.org; Thu, 04 Jan 2024 21:13:43 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rLU5N-0005pS-3f; Thu, 04 Jan 2024 15:13:01 -0500 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 1rLU5L-0005mk-98 for guile-user@gnu.org; Thu, 04 Jan 2024 15:12:59 -0500 Original-Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rLU5J-0007EQ-1t for guile-user@gnu.org; Thu, 04 Jan 2024 15:12:58 -0500 Original-Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-50e72e3d435so934296e87.2 for ; Thu, 04 Jan 2024 12:12:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704399174; x=1705003974; darn=gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=n1rLvjcJFPrnqQZpLt+b6W9xM50uxYsWf3TA/XSOPWU=; b=PaUnEIutzDkCrc3xyfiQSVNqSgdbrSVhbE4lYRp+Yg+IfqqWzqgdTiQpBwMd1lMH7s 9z0WWriou+p0q8O1RCfYcOBZGmx2FS05ffZEVhWy1e7W6tWxY1ruvb4EaGoHcyJThAQ3 GzjYEJNbFJTjfDpE1ig+QSybHyPj+u2j8KMINHKUPO3i9v+yYJVvL37+wzn/qjKDB9Ew R4PgJwXq6bJSdfXMqGBDAaYrHOj9pKKSW7dNqIP8DvjBpK1y8jRK6OGesdSMJI+mHaRK TM17KVNYJ81pMzBMtbqIxMu9PdbsHJ7FBbw8m3p/BRWgXaI5Uz7JI0f8khewunhkp4SO cd/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704399174; x=1705003974; 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=n1rLvjcJFPrnqQZpLt+b6W9xM50uxYsWf3TA/XSOPWU=; b=BxtiJHgcEoy0NEHBjNyYTIPc8nIIp1k5Iuso+shDmr5v0fxy+X7D3bNLEPr5pCY071 XCCKzvC6oaTSaEqcRaQJBERCb8Br2aEuCsslJP7R5THPELjBUYUa5M4L4wa6xe+elzoF 6BU9nZSGF9FlWBRhGgQ8speVjvg4Qo5bJD4bY5GO0YqQrJFL+A6QlEJF46z4DQxMveeR fuit/vPi2bSUg51C3lkPTJieGmoxP7kbQ21jNtMBM8iUQKNo+raajSA90pweo8eYjSYZ nO5P08H62QDflC9FWQ1x+nWQYRg5bmA+V09Ifx1eHrhPZrsu7NjzSyGexWbgBzYa9n2z R9iQ== X-Gm-Message-State: AOJu0YwDN85u6zmCnj2yPw/tIE8GVM0VI2EzuPStKDuLa8gZ27sgkrV1 pyoKp8RSnFdYIkvCiNoEYYAUWwk+r4u3AUZNewxJqv4xLLU= X-Google-Smtp-Source: AGHT+IEhD4++MtY5quB71h9y7ik5boVngTMpkNa/N3qm2z/dZw0A4Ait9lhbUcYfinngM1+p1X8AkHfApUJIL9MokKU= X-Received: by 2002:a05:6512:370d:b0:50e:b11f:708e with SMTP id z13-20020a056512370d00b0050eb11f708emr60530lfr.151.1704399173965; Thu, 04 Jan 2024 12:12:53 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=damien.mattei@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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:19396 Archived-At: i understand not all. i suppose it makes sense . in fact my problem was parsing a scheme program to generate another scheme program. So i'm in the realm of simple text and as i was just searching the good display i did not understand more the problem. and even between kawa and racket behavior differs on keywords as in this example: #|kawa:1|# (string->keyword "apple") apple: Racket: > (string->keyword "apple") '#:apple Damien On Thu, Jan 4, 2024 at 8:05=E2=80=AFPM Thompson, David wrote: > On Thu, Jan 4, 2024 at 6:36=E2=80=AFAM Damien Mattei > wrote: > > > > thank you very much Tomas, > > it solved my problem: > > (symbol->keyword (list->symbol .... > > me too i was digging the manual for 2 hours :-) > > Damien > > note: seems a bit weird anyway that guile react differently in this cas= e > > than Kawa and Racket > > Guile's behavior makes sense to me. #{...}# is syntax for symbols, not > keywords. Symbols can contain any arbitrary characters. Starting a > symbol with "#:" doesn't make it a keyword. Would you expect > (string->symbol "#:hello") to return a keyword? I wouldn't. > > - Dave >