エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
ここにツイート内容が記載されます https://b.hatena.ne.jp/URLはspanで囲んでください
Twitterで共有ONにすると、次回以降このダイアログを飛ばしてTwitterに遷移します
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
package main import "log" type S struct { value interface{} } func (s *S) Get() interface{} { ret... package main import "log" type S struct { value interface{} } func (s *S) Get() interface{} { return s.value } type Value interface { Get() interface{} } func Do() Value { var res *S if false { res = &S{123} } return res } func main() { v := Do() if v == nil { log.Fatal("v is empty!") } log.Println("v is not empty:", v) } 空判定に引っかからず、有意な値を返されたという処理フローになっちゃうという問題。 Typed-nil問題について これは「Typed-nil」問題といっ