question about links parsing

cage cage-dev at twistfold.it
Sat Jul 18 13:28:21 BST 2020


On Sat, Jul 18, 2020 at 11:18:38AM +0200, Katarina Eriksson wrote:

Hi!

> cage <cage-dev at twistfold.it> wrote:
> > If each  terms after the url  was optional i expect  the specs was
> > something like:
> >
> > =>[<whitespace>]<URL>[<whitespace>][<USER-FRIENDLY LINK NAME>]
> >
>
> That one makes the whitespace separator between <URL> and <USER-FRIENDLY
> LINK NAME> optional, making it hard to parse.
>
> This is what you were looking for:
>
> =>[<whitespace>]<URL>[<whitespace>[<USER-FRIENDLY LINK NAME>]]

Yes i was wrong! Thank you for correcting what i wrote. :)

> However, I think it's reasonable to assume the ending whitespace was
> unintentional and ignore it.
>
> Postel's law:
>
>     Be conservative in what you do, be liberal in what you accept from
> others

I was not able to remember the name of this law, thank you!

What disturbs me is that now my parser does not follow the grammar the
specs describe  anymore; but this is  just some personal thing  that i
have to accept someway, i guess! :)

Bye!
C.


More information about the Gemini mailing list