Open marbre opened 6 years ago
Yes, const-correctness is considered good practice.
It is also fine if the variable is declared where it is needed (instead of in the beginning).
Yeah, that was actually the question if the assignment should either move up to where the variables are declared or if the declaration might move down (keeping the position of the assignment untouched). A PR will follow shortly if all tests pass on my machine.
There are several functions, where variables are declared, assigned a few lines later and not reassigned later on. E.g. the variable
eps_t
inrefine_roots_newton
:Does it respect your style if refactored as follows?