News for hackers. Stuff that matters.
Re:Gophercloud: A Multi-cloud Software Development Kit for Go by kc5tja on Tuesday August 13, 2013 @01:52PM (#6207127)
Oh, I'm thick! I see what's happening now!

The problem is it doesn't produce any gain in clarity for the purposes I'm using it for. I think for the acceptance tests, it's use is fine.

I can see if it were part of the public API, there's an argument that an interface could be used, but even there, I'm not sure it'd aid readability.

Semantically, however, they're of course identical.

Re:Gophercloud: A Multi-cloud Software Development Kit for Go by zemo on Tuesday August 13, 2013 @04:09PM (#6207954)
yeah, to be honest, it may have been eggregious of me to call how I did it idiomatic. There's a lot we just don't have idioms for. Anyway, callback chains tend to be uncommon; that's just one way to avoid it. There's a handful of ways you could write this. Generally if you can expose functionality through methods, things tend to work out better in the end since you can transition into interfaces more readily. I'm jordanorelli in #go-nuts.