Skip to content
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

Add splitVersion primop. #1870

Merged
merged 1 commit into from Feb 14, 2018
Merged

Add splitVersion primop. #1870

merged 1 commit into from Feb 14, 2018

Conversation

shlevy
Copy link
Member

@shlevy shlevy commented Feb 13, 2018

Fixes #1868.

@shlevy shlevy requested a review from edolstra February 13, 2018 23:29
@edolstra
Copy link
Member

Looks good to me but should have some tests.

@shlevy
Copy link
Member Author

shlevy commented Feb 14, 2018

@edolstra Done

@edolstra edolstra merged commit 96d4831 into NixOS:master Feb 14, 2018
@coretemp
Copy link

Why was this merged?!

See https://stackoverflow.com/questions/19732319/difference-between-size-t-and-unsigned-int. Please commit correct C++ code.

@copumpkin
Copy link
Member

copumpkin commented Feb 14, 2018

@coretemp we welcome feedback, but please remember that we're all people and can miss stuff, which is probably the answer to your question. If you're genuinely dismayed about it, use GitHub's UI functionality to actually comment on the line of code that runs afoul of your link. Are you talking about unsigned int n? In that case, you're probably right, but this doesn't seem worth being so dismayed over, since no realistic version string will ever get anywhere close to a point where that would matter. TBC, I'm not saying size_t wouldn't be more appropriate there, but this isn't a "holy shit, the world is ending, I must use ?! to indicate how terrible this is" kind of moment.

@shlevy
Copy link
Member Author

shlevy commented Feb 14, 2018

@coretemp I know full well the difference between unsigned int and size_t, thank you very much. I also know that nix lists are sized with unsigned int, not size_t:

unsigned int size;

@coretemp
Copy link

OK, in that case, the issue already existed and w.r.t. to just adding this feature there is no blame for you. Since there is no comment explaining why size_t is not being used in value.hh, that's just bad programming.

@shlevy
Copy link
Member Author

shlevy commented Feb 15, 2018

@coretemp I am going to block you on my account now. Feel free to contact me through some other means if you learn to be a constructive polite member of open source communities.

@coretemp
Copy link

Yeah, that's clearly the mature thing to do. 🙄

It would be hard to find someone qualified who wouldn't agree with me regarding how it's not bad programming to not use size_t for something which is clearly a size in C++.

Your initial reply was also overly aggressive and certainly not exemplary behavior. It would again be hard to find someone who is going to disagree on that.

@shlevy shlevy deleted the split-version branch February 15, 2018 19:58
@copumpkin
Copy link
Member

@coretemp please lay off. If you want to fix the size_t thing, submit a PR, but your tone in here is combative and not welcome, and if you want to keep that sort of thing up, please take it elsewhere.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants