-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
followup #17398: getTempDir
, getConfigDir
now do not have trailing DirSep
#17402
followup #17398: getTempDir
, getConfigDir
now do not have trailing DirSep
#17402
Conversation
This breaks the "inim" package... Do we really want to break people's code because one guy on the forum found an inconsistency that prevented him from using a bad solution? I think it's a terrible way to develop a project. |
@Araq That was just a test case to highlight the inconsistencies between the procs. My argument against keeping it inconsistent because it "discourages bad code" is that the inconsistency itself is bad code. |
I'm fixing inim in inim-repl/INim#117;
is just asking for trouble |
I have to wonder if randomly adding/removing separators as part of the actual logic wouldn't lead to more reliable code... |
Thank you for your consideration @timotheecour & @Araq! The PR's merged in (thank you for that), that's a go from our side! |
… trailing DirSep
b8b67ad
to
daa307a
Compare
… trailing DirSep (nim-lang#17402) * followup nim-lang#17398: `getTempDir`, `getConfigDir` now do not have trailing DirSep * fix test
… trailing DirSep (nim-lang#17402) * followup nim-lang#17398: `getTempDir`, `getConfigDir` now do not have trailing DirSep * fix test
…not have trailing DirSep (nim-lang#17402)" This reverts commit 2356d06.
* Revert "followup nim-lang#17398: `getTempDir`, `getConfigDir` now do not have trailing DirSep (nim-lang#17402)" This reverts commit 2356d06. * Revert "fix nim-lang#17393 getHomeDir and expandTilde should not include trailing `/` (nim-lang#17398)" This reverts commit bebf2ce. * fix test
followup #17398