implicit-context v0.0.1
Imperatorn
johan_forsberg_86 at hotmail.com
Fri Sep 29 16:56:47 UTC 2023
On Friday, 29 September 2023 at 15:30:30 UTC, Guillaume Piolat
wrote:
> On Friday, 29 September 2023 at 15:00:33 UTC, Imperatorn wrote:
>> [...]
>
> Only if proven on DUB.
>
>> [...]
>
> Think of it like envvars for threads. When you launch a
> process, the launcher knows to copy the environment variables.
> With scattered TLS variables, no new thread can get a copy of
> all the "context" it may have. But with a centralized place for
> context, you will be able to do that (not implemented yet),
> which kinda improves encapsulation.
>
> [...]
Sounds a bit like dependency injection but for state
More information about the Digitalmars-d-announce
mailing list