Re:Having a Go - first time experience with Golang
by robotmay on Monday July 09, 2012 @09:22AM
(#4217979)
Ah ha, I'd seen that style being used in a couple of libraries but I wasn't sure which was the more accepted standard. I'll make sure I use that format in the future.
Update for your update:
Aye, I wouldn't normally write so repetitively but I wasn't too sure about the best practice for things like that and I decided to just hash it out so I could play with the data. Thanks for the tips; I'm really keen to improve quickly with Go, as it's very enjoyable.
Re:Having a Go - first time experience with Golang
by james4k on Monday July 09, 2012 @02:18PM
(#4219553)
I've always had a bit of an issue with these if statements. It might be slightly more concise, but your code also isn't as straightforward to read. In fact, it's really only more concise in its use of vertical space, so for clarity's sake I'm not sure I see the point.
Have fun with Go!