-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 unsafe.Pointer to Nil/NotNil checks #872
Add unsafe.Pointer to Nil/NotNil checks #872
Conversation
@georgelesica-wf , having had a look at the Travis build, it seems that there was a bug in Go 1.11 and earlier where This leaves us with a bit of a quandary. Do we want to: Thoughts? I'd like to say that I'm leaning towards |
What about pulling it out into its own file and using a compile flag to only provide it for versions newer than 1.12? |
It's a good idea but it will require us to effectively maintain two separate copies of the Thoughts? |
Yeah, I definitely don't like working with conditionally compiled code, particularly since most IDEs don't make it a great experience in my experience. On the other hand, I definitely feel like 1.12 being a year old is a little too soon to drop support for it, particularly given that Go is starting to show up in "enterprise" settings. |
@boyan-soubachov do we want to get this into the next release? I'm thinking we should make the next release 2.0.0 so that would be a nice place to drop support for older versions of Go, I suppose. |
I think that would make sense. I don’t think it warrants a whole separate ‘branch’ of code as we’ve discussed just to backport it.
We should move this to 2.0.0 but I do think we have enough merged work for another release before that. I was working through the list of issues in the next milestone and was hoping we could see that out before 2.0.0
… On 8 Feb 2020, at 02:29, George Lesica ***@***.***> wrote:
@boyan-soubachov do we want to get this into the next release? I'm thinking we should make the next release 2.0.0 so that would be a nice place to drop support for older versions of Go, I suppose.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Support for The issues raised about Go pre-1.11 are not relevant anymore as we do not support those old versions. Closing. |
unsafe.Pointer
typesFixes Expected nil, but got: (unsafe.Pointer)(nil) #863