Re:Nim 2.0.0 RC2
by overthrow on Friday March 31, 2023 @08:57AM
(#35386429)
How does the linter treat 'get_file_system' and 'get_filesystem'? Which one would be flagged as an error?
[ Parent
| on HN ]
The one that doesn't match the declaration.
A parent comment says:
> It's so external dependencies don't have to infect your codebase. So you can actually apply a consistent code style within your project.
Say an external dependency has a declaration called 'getFileSystem', and in my Nim codebase I refer to it as 'get_file_system', but last year someone accidentally committed 'get_filesystem'. In this case neither usage matches the declaration. Does the linter flag both spellings because they don't match 'getFileSystem'?
EDIT: And what about reflection? If someone wrote `newCall("get_filesystem")`, will the linter fix that usage too?