Skip to content

Allow passing nil to functions as nil interface{} #87

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

Merged
merged 8 commits into from
Feb 20, 2020

Conversation

antonmedv
Copy link
Member

No description provided.

wintermute-cds and others added 8 commits February 19, 2020 14:07
golang gotcha: reflect calls with nil params fail without this trick
…ce{} type parameters fixed

e.g.
a != nil
was not working when "!=" is overloaded with
func notEqual(a, b interface{}) interface{} {...}
Forgot to close ")"
a == b replaced with a == nil to illustrated the problem when using nil directly in expression
@antonmedv antonmedv merged commit ab801d4 into master Feb 20, 2020
@antonmedv antonmedv deleted the wintermute-cds-patch-1 branch February 20, 2020 13:59
@antonmedv
Copy link
Member Author

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.

2 participants