skribilo-users
[Top][All Lists]
Advanced

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

Re: [PATCH 1/1] reader: Add Gemtext reader.


From: Arun Isaac
Subject: Re: [PATCH 1/1] reader: Add Gemtext reader.
Date: Thu, 17 Mar 2022 22:48:09 +0530

Hi Jonathan,

> Out of interest how are making use of the symbol '<=' in this section?

<= is simply the "less than or equal to" comparison function.

>
> ```
> +     ((let ((heading-level (heading-level line)))
> +        (and heading-level
> +             (<= heading-level level)))
> ```
>
> Given the context, it makes a delicious inversion of GemText's symbol for
> a link.

He he, yes! :-)

> Also, can you clarify your the repeated use of the symbol '=>' in the
> function read-gemtext-element port?

See the last paragraph in
https://www.gnu.org/software/guile/manual/html_node/Conditionals.html

--8<---------------cut here---------------start------------->8---
For the => clause types, expression is evaluated and the resulting
procedure is applied to the value of key. The result of this procedure
application is then the result of the case-expression.
--8<---------------cut here---------------end--------------->8---

I use => to pass the result of the conditional clause to its body. Thus,
I don't have to recompute the conditional clause in the body.

Regards,
Arun



reply via email to

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