You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 24, 2021. It is now read-only.
There's no -> autocomplete yet for constants such as "hello", only for variables at the moment.
The workaround for those examples for now is to leave a space -> Js..
I guess when -> autocomplete does not lead to anything, it makes sense to handle . in the normal way.
Side comment, after having played with autocomplete for a while, I am changing my uses of ->. Before I used any time it was possible, now I only use it when the lhs belongs to a module that is collection-style: i.e. that has a main type e.g. t and a bunch of functions on it.
There's no -> autocomplete yet for constants such as "hello", only for variables at the moment.
The workaround for those examples for now is to leave a space -> Js..
I don't think this is the case:
let a = Some(a)
a->Option. // no completion
The best workaround for me is just staying on the previous version. It worked perfectly
I guess when -> autocomplete does not lead to anything, it makes sense to handle . in the normal way.
Side comment, after having played with autocomplete for a while, I am changing my uses of ->. Before I used any time it was possible, now I only use it when the lhs belongs to a module that is collection-style: i.e. that has a main type e.g. t and a bunch of functions on it.
I have no idea what you mean to be honest. Modules like Option and Js.String work with built-in types so they don't have a type t. Does this mean that you wouldn't use -> for those modules?
Option and Js.String are about one specific type, even though they don't define it. That's what I mean. So I'd use pipe for them. Well, for Js.String2.
Activity
cristianoc commentedon Apr 8, 2021
There's no
->autocomplete yet for constants such as"hello", only for variables at the moment.The workaround for those examples for now is to leave a space
-> Js..I guess when
->autocomplete does not lead to anything, it makes sense to handle.in the normal way.Side comment, after having played with autocomplete for a while, I am changing my uses of
->. Before I used any time it was possible, now I only use it when the lhs belongs to a module that is collection-style: i.e. that has a main type e.g.tand a bunch of functions on it.alexeygolev commentedon Apr 8, 2021
I don't think this is the case:
The best workaround for me is just staying on the previous version. It worked perfectly
I have no idea what you mean to be honest. Modules like
OptionandJs.Stringwork with built-in types so they don't have a typet. Does this mean that you wouldn't use->for those modules?cristianoc commentedon Apr 8, 2021
OptionandJs.Stringare about one specific type, even though they don't define it. That's what I mean. So I'd use pipe for them. Well, forJs.String2.Autocomplete fix: don't let `->` override `.` autocomplete
Autocomplete fix: don't let `->` override `.` autocomplete
Autocomplete fix: don't let `->` override `.` autocomplete
Autocomplete fix: don't let `->` override `.` autocomplete