Being able to add a field to a data type and having the compiler tell you everywhere you need to update the code is a huge productivity multiplier. It’s a shame when languages forego this advantage.
-
-
Replying to @pcwalton
The only thing missing is leveraging rustc/rustfix for refactoring workflows. Think operations of "remove this field everywhere" driven by rustc suggestions applied by rustfix being representable and not just ad-hoc.
2 replies 0 retweets 10 likes -
I wonder if this is something that could be addressed by
@rust_analyzer? I know it already has some ability to fill missing items...3 replies 0 retweets 8 likes -
Replying to @bitshiftmask @ekuber and
I suspect that's the right place to implement fixes like that!
1 reply 0 retweets 1 like -
Replying to @TedMielczarek @bitshiftmask and
But it shouldn’t be about a built-in list of refactorings, what the People need is a semantic patching tool, a la Coccinelle or pfff or spatch.
1 reply 0 retweets 2 likes -
Replying to @nokusu @bitshiftmask and
I think built-in refactorings would be a good start and useful. Designing a general-purpose tool like that sounds hard, especially making it usable!
2 replies 0 retweets 1 like
Indeed, usefulness of an IDE feature is usually inversely proportional to its complexity. But long-term plan for @rust_analyzer absolutely includes supporting wasm plugins for doing all kinds of code transformations.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.