Import style
We had a chat here and agree on the following style:
- Imports must be alphabetically sorted.
- We should not use grouping: one import per line.
- Minimal renaming: An import should only be renamed if there is a clash. If there is no clash, no rename.
- Imports should not use semicolons.
CC @jaschdoc @chanattan As you refactor, you can start to apply this style.
What about inner classes like Map$Entry? Should we rename these to Entry in the import?
The following files must be changed to the new import style:
- [x] https://github.com/flix/flix/pull/7977/files
- [x] https://github.com/flix/flix/pull/7980/files
- [x] https://github.com/flix/flix/pull/7901/files
- [x] https://github.com/flix/flix/pull/7909/files
- [x] https://github.com/flix/flix/pull/7953/files
What about inner classes like
Map$Entry? Should we rename these toEntryin the import?
I suppose so. @mlutze Thoughts?
What about inner classes like
Map$Entry? Should we rename these toEntryin the import?I suppose so. @mlutze Thoughts?
I agree