Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replaceRevive [nfc]: Use function declarations.
Greg pointed out (in response to d750645) [1] that the `const foo = function foo() { ... }` form is repetitive, which it is. I'd given just a bit of reasoning for the repetitive form in a0dcf4f, which I also gave in response to Greg's comment -- but after more discussion, I was convinced that plain function declarations (at toplevel, where definitions belong, and nontrivial logic doesn't) are at least as good and possibly better. We'll fix a0dcf4f in the next commit. [1] zulip#4367 (comment)
- Loading branch information