Avatar
Avatar
omochimetaru
macに関してはどうなんでしょうね CoreFoundation部分の互換性は捨てられるんだろうか
ServerSide.swift 2022 の新旧比較のスライドだと,プラットフォームを跨いだ共通部分だった CoreFoundation は swift-foundation に置き換わって,Foundation.framework の中身も swift-foundation と一部の ObjC / C 実装だけに変わっていくという感じの説明だったと理解してます. そしてその「一部の ObjC / C 実装」というのが https://forums.swift.org/t/what-s-next-for-foundation/61939 で書かれているこれらのことなのではないかと.
  • RunLoop, Lock, OperationQueue, Stream, Port, Timer etc. - replaced by structured concurrency
  • NS-prefix collection types - originally provided for compatibility, but utility has been very small
  • NSCoding, NSKeyedArchiver - replaced by Codable.
  • Progress - No external dependencies, but intersection with structured concurrency has not yet been fully designed.
なので URL とかに関しては swift-foundation に置き換わる部分なので,Foundation.framework が使われていたとしても swift-foundation 由来の URL が入っているバージョンの Foundation.framework なら new の方の結果になるようなテストがされているということだと思います.