Dot completion for pipeable functions #4306
nojaf
started this conversation in
Ideas & suggestions
Replies: 1 comment 4 replies
-
Hello! We will never use It may be that LSP support using |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I recently discovered an IDE improvement in ReScript that I think would be interesting to implement in Gleam as well.
Coming from different languages like JavaScript, users are accustomed to typing
.
and expecting numerous autocompletion options.For example, with strings:
In Gleam, I see:
While I understand that the language operates differently, it would be beneficial if all functions that accept a string as their first argument could be autocompleted as well, especially in combination with a pipe.
This way, typing
.
would also complete|> string.length
,|> string.trim
, and so on.This change would be very intuitive for beginners who may not know exactly where the helper functions are located.
Of course, I have no idea how challenging this would be to implement. I just wanted to share my thoughts!
Beta Was this translation helpful? Give feedback.
All reactions