Open GrayJack opened 2 years ago
I am not sure what are you saying. ?.
shouldn’t be grouped?
Yes, @tonsky that is correct
For non-rustaceans: this is something like combining the ).
in foo().bar
Oh I see. I only saw it in Kotlin, and in Kotlin it’s a single operator, not ?
and .
combined. Makes sense to make a stylistic set then, thanks!
It would be better to be enabled by default.
?.
is the optional chaining operator in JavaScript and it is popular among JavaScript developers.
For me personally, doesn't make a difference what is the default, as long as it is possible to toggle it. So as long most people are happy with the default, it works for me
In Rust it's pretty common to have a question mark followed by a dot and the ligature:
Fira Code (Ligatures)
Fira Mono (No ligatures)