Add alternate names/tags to function docblocks for the LSP to pickup / people to find by find-all #1645
inoas
started this conversation in
Ideas & suggestions
Replies: 3 comments 7 replies
-
I like this idea a lot. We should also think about what the syntax might be like |
Beta Was this translation helpful? Give feedback.
7 replies
-
@aliases to_int
pub fn truncate(... @aliases abs
pub fn absolute_value(... @alias count
pub fn length(... @aliases distinct
pub fn unique(... |
Beta Was this translation helpful? Give feedback.
0 replies
-
Could include an optional description why that alias exists. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
See gleam-lang/stdlib#307 (comment)
If above gets merged or not does not matter for the sake of this argument:
Users onboarding from other languages may be used to certain nomenclature.
For instance it took me a while to find a
map()
function. People may be looking forabs()
etc.Would it be nice if when typing those functions the LSP could scan the docblock for a tag of alternate names?
Tagged @NicklasXYZ
Beta Was this translation helpful? Give feedback.
All reactions