by shigemk2

当面は技術的なことしか書かない

2015-02-12から1日間の記事一覧

isInstanceOfの代わりにパターンマッチ

こういうことを言っているので。 some programmers discourage this approach, and in other cases, it may not be convenient. In these instances, you can handle the different expected types in a match expression printInfo.scala

undefinedの話

undefined.js こうなるんだな。というか、typeofの戻り値はstringなのでした。 JavaScript:undefined値の判定 JavaScript:undefined値の判定 - 泥のように

isInstanceOf vs switch

isInstanceOfはswitchで使えないのか… isperson.scala