Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can understand why that inconsistency is frustrating. Similarly:

    typedObj, err = something.(type)
    typedObj = something.(type)
    obj = someMap[key]
    obj, ok = someMap[key]


It's

    typedObj, ok = something.(type)
just like it is with maps, or any other ", ok" thing.

http://play.golang.org/p/I-5kD88knC


Oi vey, mea culpa.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: