folks (especially @mattiemMatt Massicotte ):

With Swift 6.2’s new concurrency checking/rejecting on Actor’s `static var …`, is it safe-enough to do something like this for dependency injection?

```swift
struct Config {
nonisolated(unsafe) private static var _shared: Self = .init()
TESTING
static var shared: Self {
get { Self._shared }
set { Self._shared = newValue }
}

static var shared: Self { Self._shared }


}
```

0

If you have a fediverse account, you can quote this note from your own instance. Search https://scoat.es/users/sean/statuses/115222015295251024 on your instance and quote it. (Note that quoting is not supported in Mastodon.)