Wouldn't it be nice to have a 2-part for form such as:
for ch, err = b.ReadRune; err != nil {
// ...
}
I've encountered the need for something like this quite a few times.
On Thursday, 26 April 2012 17:36:16 UTC+2, Jiří Zárevúcky wrote:
On Thursday, 26 April 2012 16:29:56 UTC+2, Costin Chirvasuta wrote:Wouldn't it be nice to have a 2-part for form such as:
for ch, err = b.ReadRune; err != nil {
// ...
}
I've encountered the need for something like this quite a few times.I'm afraid this would be too confusing. Think the following two statements: