Skip to content

Conversation

lassik
Copy link
Contributor

@lassik lassik commented Oct 22, 2022

Inspired by the Google Search "I'm feeling lucky" button.

Inspired by the Google Search "I'm feeling lucky" button.
@arthurgleckler arthurgleckler merged commit 6934d5e into scheme-requests-for-implementation:master Oct 22, 2022
@arthurgleckler
Copy link
Contributor

This is silly, but fun. It silently privileges the first match. For example, srfi lucky record shows SRFI 9.

Merged and pushed, but I refactored it to use srfi-search first, and fixed an already existing warning about multiple definitions of with-output-to-string.

@lassik lassik deleted the patches branch October 22, 2022 19:05
@lassik
Copy link
Contributor Author

lassik commented Oct 22, 2022

Yeah. It's half easter egg, half feature. But surprisingly often useful - as was the original, I guess. I now use it more often than the search command. If you can think of a better criterion than picking the earliest matching SRFI, please change it.

We could perhaps also add a command that browses a SRFI with the given library name.

Thanks for the fixes - good catches both.

@arthurgleckler
Copy link
Contributor

arthurgleckler commented Oct 22, 2022 via email

@lassik
Copy link
Contributor Author

lassik commented Oct 22, 2022

srfi search foo shows all the matches. What do you mean by jumping in this context?

@arthurgleckler
Copy link
Contributor

arthurgleckler commented Oct 22, 2022 via email

@lassik
Copy link
Contributor Author

lassik commented Oct 22, 2022

Right. Sounds reasonable to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants