Implement a way to discover functions by parts of their signatures (a Hoogle equivalent) #1340
Replies: 4 comments 1 reply
-
I think that the first tool to be implemented should be the proper hoogle equivalent. |
Beta Was this translation helpful? Give feedback.
-
A fantastic suggestion, I would love to see a tool like this for Gleam. One thing to consider is how to we identify Gleam packages on Hex. Perhaps to start it could be a fixed list of package, but later it would be good to automatically add packages as they are uploaded.
One good thing about Gleam is that no type annotations are required for full type inference. It is recommended that you use annotations, but even if you do not we can still extract all the type information for this tool. |
Beta Was this translation helpful? Give feedback.
-
FTR, I don't write annotations mostly to stress-test inference. |
Beta Was this translation helpful? Give feedback.
-
@pd-andy suggests the name "gloogle" |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why?
Types allow us to write a lot of code mechanically, if there is a way to discover functions that return the types we want. Currently, the best way to do that is to check out the entirety of gleam universe and ripgrep it. As gleam ecosystem grows, that shall become not feasible for a regular user.
What?
How?
TBD
Beta Was this translation helpful? Give feedback.
All reactions