トップページ > プログラム > 2014年07月08日 > SGOgDbT/

書き込み順位&時間帯一覧

29 位/202 ID中時間01234567891011121314151617181920212223Total
書き込み数0000100000000010000010003



使用した名前一覧書き込んだスレッド一覧
メモ
デフォルトの名無しさん
Swift part2

書き込みレス一覧

Swift part2
511 :メモ[sage]:2014/07/08(火) 04:31:24.37 ID:SGOgDbT/
Xcode 6 beta3 で Swift Arrayの仕様がまともになったようだぜ

Array in Swift has been completely redesigned to have full value semantics like Dictionary and
String have always had in Swift. This resolves various mutability problems – now a 'let' array
is completely immutable, and a 'var' array is completely mutable – composes properly with
Dictionary and String, and solves other deeper problems. Value semantics may be surprising
if you are used to NSArray or C arrays: a copy of the array now produces a full and
independent copy of all of the elements using an efficient lazy copy implementation. This is a
major change for Array, and there are still some performance issues to be addressed. Please
see the Swift Programming Language for more information. (17192555)!
Swift part2
544 :デフォルトの名無しさん[sage]:2014/07/08(火) 14:25:43.00 ID:SGOgDbT/
Swiftって、KVOとかKVCはどうするつもりなんだろ
あくまでCocoa Touchを主眼に置いてて、Cocoaは無視なのかな
Swift part2
561 :デフォルトの名無しさん[sage]:2014/07/08(火) 20:54:53.70 ID:SGOgDbT/
これはOK
let x = [1,2,3].map({ String($0) })
let x:[String] = [1,2,3].map({ return String($0) })

↓これだと型推論きかない
let x = [1,2,3].map({ return String($0) })

なんで?


※このページは、『2ちゃんねる』の書き込みを基に自動生成したものです。オリジナルはリンク先の2ちゃんねるの書き込みです。
※このサイトでオリジナルの書き込みについては対応できません。
※何か問題のある場合はメールをしてください。対応します。