What is the meaning of @future ?
Stefan Koch
uplink.coder at googlemail.com
Thu Sep 16 21:05:01 UTC 2021
On Thursday, 16 September 2021 at 20:53:34 UTC, Elmar wrote:
> Hello D community.
>
> I was browsing the `__traits` keywords and I found `isFuture`
> whose descriptions says something about `@future`-annotated
> variables.
>
> [link](https://dlang.org/spec/traits.html#isFuture)
>
> I didn't find anything about `@future` for the D programming
> language. I only found that this annotation is used in Apex to
> denote futures (a.k.a. promises) as programming concept.
>
> Is this something which exists, existed, was abandoned early as
> an idea? I remember I had read that D uses a "fiber" library to
> provide coroutines and such.
>
> Maybe somebody knows an answer for this.
future means a name is reserved for future extension.
it's kind of the opposite of deprecated.
More information about the Digitalmars-d-learn
mailing list