From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Taylan Kammer Newsgroups: gmane.lisp.guile.user Subject: Re: hashmark in symbols Date: Mon, 2 Jan 2023 07:59:40 +0100 Message-ID: <6e2158f1-4c28-85f3-4283-4aee63332529@gmail.com> References: <87y1qlvfg2.fsf@laptop> <87sfgtzc4u.fsf@laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32009"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Cc: guile-user To: Andreas Reuleaux , lloda Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Mon Jan 02 08:00:16 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 1pCEnv-0008AS-OM for guile-user@m.gmane-mx.org; Mon, 02 Jan 2023 08:00:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pCEnV-0000q1-0H; Mon, 02 Jan 2023 01:59:49 -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 1pCEnT-0000pm-KF for guile-user@gnu.org; Mon, 02 Jan 2023 01:59:47 -0500 Original-Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pCEnS-0005aF-11 for guile-user@gnu.org; Mon, 02 Jan 2023 01:59:47 -0500 Original-Received: by mail-wm1-x336.google.com with SMTP id i17-20020a05600c355100b003d99434b1cfso9828762wmq.1 for ; Sun, 01 Jan 2023 22:59:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=eOtWwi8V+0WSJeMxdihsg2P2c58mjufRddwcZNcxeiY=; b=BGaVKxHBnNjlIbRJvFflxMzJqHvgQ6gorhxDBmJMkenpFLB6uYIMVu2qrjxSbGVh4O PRqQA1M+MOAoiEj7KBWvsYtphPEt7SCwPJwt3t6HJ7ef0b3zqGB39XuPJCyTyj8hBhX4 ZqvYLaZjcxKKgWNoe/nNIuahVeEjTFykPm4/NmueABGT29wlyqbhoLNEVR5ZZTeVUlPq RVDNotBA+EUrONGLitjiRc+7jH1HfaLEihhryYzpLmyboxNNqdquGbp2Ux8koOGYzBMp eElLTxR6t3SpIRBj9eJ/bsvjaajNJ9u7Rv0Wgmuhz+1WPZzdPT9jKVzyFsBgajArjRhD jsSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eOtWwi8V+0WSJeMxdihsg2P2c58mjufRddwcZNcxeiY=; b=B790PLCVzVOX7AV7ccoMwDS5zhXF+yUC5isw7ZpXUY8VFTLnPsGPapHc/DxWgXFfax wfT2xOEYzKXbmF6C5xfMAf1KH3+554WV1j4pMueSREY2rf5yFv+9VrsbZrZ+0zplkVLQ RTBMxvvqMdsewBq50qbsVs0QJqjC3pOuj9X7UI6JA2TEGeuraZzokUFEAZ066r/1BhpV eon0x4ZFMqmgOG970VBi/BCS1BsTJtd/z5rSJuQaFiK2DSNump7NCF1cRIKDPxGJ9RPe Rtft+K9taFa+0uaqQsLDOmflscJMQFt9xZuTIXiIicJRrFsF3Cs+YteOMUA6wrR7ID48 7sVg== X-Gm-Message-State: AFqh2kqh3l4oGkC2PGbplDdVf8/NX7AEHvUkGvnYSJNPf/y2v51R6xPj o7dlj72M1xJ0c1qX1GfoSFk= X-Google-Smtp-Source: AMrXdXuB5Gzl8Fq/mBPrCIrYY/iR0fNvV4PklXkr0BoSLfL3oBCpi68YtTrV2PUnsShSvLdSXRLTxQ== X-Received: by 2002:a05:600c:5022:b0:3d3:5893:f4f8 with SMTP id n34-20020a05600c502200b003d35893f4f8mr27678329wmr.23.1672642783853; Sun, 01 Jan 2023 22:59:43 -0800 (PST) Original-Received: from [192.168.178.20] (ip-109-090-125-150.um36.pools.vodafone-ip.de. [109.90.125.150]) by smtp.gmail.com with ESMTPSA id e16-20020adfdbd0000000b002362f6fcaf5sm27613377wrj.48.2023.01.01.22.59.42 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 01 Jan 2023 22:59:43 -0800 (PST) Content-Language: en-US In-Reply-To: <87sfgtzc4u.fsf@laptop> Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=taylan.kammer@gmail.com; helo=mail-wm1-x336.google.com X-Spam_score_int: -48 X-Spam_score: -4.9 X-Spam_bar: ---- X-Spam_report: (-4.9 / 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, NICE_REPLY_A=-2.802, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:18819 Archived-At: On 02.01.2023 07:25, Andreas Reuleaux wrote: > Ah, OK, this helps indeed > > --8<---------------cut here---------------start------------->8--- > (read-enable 'r7rs-symbols) > --8<---------------cut here---------------end--------------->8--- > Another option would be to use string->symbol: (string->symbol "#444") That being said, I wonder if it's not better to use strings for this. Is there any particular reason you want to use symbols to represent CSS color values? I assume that your main requirements are: - Easy to represent as literal values in code. - Easy to splice into a bigger string (or write into an output stream) that will become an entire CSS code snippet or file. Strings seem like the most straightforward choice. All in all there's not much difference though, given that symbols are basically just automatically interned immutable strings. -- Taylan