💾 Archived View for rawtext.club › ~sloum › geminilist › 007287.gmi captured on 2024-02-05 at 10:47:29. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2021-11-30)

-=-=-=-=-=-=-

<-- back to the mailing list

[spec] comments on the proposed gemini spec revisions

Chris McGowan cmcgowan9990 at gmail.com

Mon Oct 11 14:44:40 BST 2021

- - - - - - - - - - - - - - - - - - - 
As someone who's making a basic gemini client, having the whitespace
makes it alot simpler, you can just split the line on the space and do
a `switch` on the first part.
Not having a space means you'd have to test if the line starts with
different things, which would be very annoying and slower in most
cases.

Doesn't the spec say that line type indicators are only three characters maximum? It also implies that line type indicators should be the first thing on the line and that nothing should come before them (i.e. no whitespace before the indicator).

That should mean that simply taking a three character substring of the line should be enough to determine whether it has a line type indicator and, if so, which type. That should be relatively easy and quick to parse as there's only about 5-6 different cases to handle.