guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unicode procedure names


From: Arne Babenhauserheide
Subject: Re: Unicode procedure names
Date: Tue, 16 Jul 2019 01:52:39 +0200
User-agent: mu4e 1.2.0; emacs 26.2

Ricardo Wurmus <address@hidden> writes:

> Tirifto <address@hidden> writes:
>
>> I was recently looking into Perl 6 and noticed a very neat feature
>> about it: Unicode operators! That is, it makes use of some Unicode
>> symbols to offer alternatives to awkward or verbose ASCII notation.
>> For instance, ‘>=’ and ‘<=’ may just as well be written as ‘≥’ and
>> ‘≤’, respectively. [1] And ‘∈’ checks whether an item is an element
>> of a list. [2] [3]
>
> Neat.
>
>> Now, I don't know if this is something you think would be nice to have
>> baked into Guile, but I really liked the idea, and thought to share it
>> in the case you would, too (and have't thought of it yet). :)
>
> I think this could be implemented as a library of aliase and thus
> wouldn’t need to have any privileged access to Guile itself.

All you need to do is

(define ≥ >=)

And you can use (≥ 2 1) — if you use SRFI-105 (#!curly-infix), then you
can also use it as {2 ≥ 1}.

Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein
ohne es zu merken

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]