- Swift part2
671 :デフォルトの名無しさん[sage]:2014/07/10(木) 16:43:07.44 ID:lVukJkUe - >>660
数学記号のこと言ってるなら https://devforums.apple.com/message/1000934#1000934 > It's not documented yet, but the set of allowed operator characters > includes 'math' and 'symbol' characters in the Unicode BMP, > and operator characters can be augmented with combining characters. > The full set of supported characters will be documented in one of the following seeds.
| - Swift part2
680 :デフォルトの名無しさん[sage]:2014/07/10(木) 23:28:51.53 ID:lVukJkUe - クラスメソッドの記事、オプショナルチェーンの節が書いてること無茶苦茶じゃね?
メソッドも呼び出せる! Swiftの強力な「列挙型」 http://codezine.jp/article/detail/7886?p=3 > このInt?型の返り値に対し、Int型に定義されているdescription()メソッドを呼び出したいとしましょう。(略) > let numStr: String = "134" > numStr.toInt().description() // エラー > > しかし、「.」の前に「?」を置くことでそれが可能になります。この仕組みがオプショナルチェーンです。 > let numStr: String = "134" > numStr.toInt()?.description() // Some "134"
|
|