miniblog.

← Back to all posts
12
@arxanas @mattbrowndev Just noticed that rust-analyzer has started doing exactly this!

2 Comments

@wilfredh @mattbrowndev Oh, nice, I'll be interested to try it out and see if it makes a noticeable difference. [tangential] In several codebases, I've wanted a lint rule/configuration that would let me establish a partial ordering for parameters of certain types and/or names to enforce consistency, but I haven't found any tool for any environment that would let me do it (and I haven't written one myself 😫). The information about desired parameter ordering *exists*, to some degree. It's just unfortunate that it's hard to write down. (Also, if you wrote down what you thought the rules were for a certain codebase, you might discover that your intuition is actually unsatisfiable in certain cases.) Obviously, we can just throw an LLM in there to help 🤓