You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is a very common pattern... in bourne shell. Where the idiom is test "x$foo" != "x" as a workaround to handle cases where $foo might contain something that would be interpreted as a flag by the test command's option parser. I've also seen it in Makefiles, I think. I agree that it seems vanishingly unlikely to show up in go.
Also why is the function not called walkCompareString with a capital C?
Also why is the function not called walkCompareString with a capital C?
It's a subroutine of the vestigially-named walkcompare function. We try to toe a balance between adopting current Go conventions and staying consistent with the current archaic code base.
From walk.go:
I've always been skeptical that anyone writes code that matches this pattern; I'd like to remove it.
Thoughts/objections?
cc @mdempsky @randall77
The text was updated successfully, but these errors were encountered: