[go-nuts] Re: How to refactor out this function

2018-08-08 Thread Jim Bishopp
HelloSender can SendHello(). Sometimes I find better ways of naming things while adding comments, because the act of describing what something is and does surfaces name-smells. HelloSender can HelloSend(). wat? HelloSend is a polite thing to say when you finally meet Send. io.RuneReader

[go-nuts] New identifiers and selectors in short variable declarations

2018-01-09 Thread Jim Bishopp
Has there ever been a discussion about allowing new identifiers *and selectors *in short variable declarations? var a struct { x int } b, a.x := 1, 2 ERROR: expected identifier on left side of := -- You received this message because you are subscribed to the Google Groups "golang-nuts"