Slide 34
Slide 34 text
最近の傾向
■ ここまで力説してきたが
■ 最近はドキュメンテーションコメントを書くよりも「コードを読め」の傾向にある
■ 後発のGoの例
– atEOF とは?
// ScanWords is a split function for a Scanner that returns each
// space-separated word of text, with surrounding spaces deleted. It will
// never return an empty string. The definition of space is set by
// unicode.IsSpace.
func ScanWords(data []byte, atEOF bool) (advance int, token []byte, err error) {