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.
It's just another "useless" attribute that the language has added
before fixing any of the real problems :)
Basically it reserves a symbol for the future.
It's similar to creating ex. an empty function that throws an
error or something like "Not implemented"
While I understand why it was added and what purpose it serves
then I fail to see why that was prioritized over actual issues.
It's solving an almost non-existing issue.