Avatar
omochimetaru 11/9/2018 2:09 AM
The Foundation Project, providing core utilities, internationalization, and OS independence - apple/swift-corelibs-foundation
2:09 AM
/// - Note: this differs from the Darwin implementation in that the keys must be Strings open var threadDictionary = [String : Any]() (edited)
2:09 AM
これ困るんですけど
2:10 AM
どこに連絡するのが良いでしょう?
2:10 AM
bugs.swift.org ?
2:10 AM
なぜ困るかと言うと、 Thread.current.threadDictionary を Thread Local Storage として使おうとしたときに
2:10 AM
String だと衝突回避が困難だからです
2:11 AM
MacOS版ならNSMutableDictionaryなのでObjectIdentifierとかUnsafeRawPointerをキーにすればまずぶつかる事は無い