- Notifications
You must be signed in to change notification settings - Fork 10.6k
Closed
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.input & outputArea → standard library: Input & outputArea → standard library: Input & outputstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift 5.9
Description
CommandLine.arguments and CommandLine.argc are both declared static var. This is a real footgun: they're unsafe to use in a concurrency context because they may be mutated from any thread at any time. There's no real value in these being mutable so I think it is largely an oversight. We should consider deprecating these and replacing them with thread-safe equivalents.
samsonjs, haikusw and dnadobasamsonjs
Metadata
Metadata
Assignees
Labels
bugA deviation from expected or documented behavior. Also: expected but undesirable behavior.A deviation from expected or documented behavior. Also: expected but undesirable behavior.input & outputArea → standard library: Input & outputArea → standard library: Input & outputstandard libraryArea: Standard library umbrellaArea: Standard library umbrellaswift 5.9