Discussion Thread: DIP 1029--Add throw as Function Attribute--Final Review
Tove
tove at fransson.se
Tue May 5 15:30:38 UTC 2020
On Friday, 17 April 2020 at 11:28:05 UTC, Mike Parker wrote:
> This is the discussion thread for the Final Review of DIP 1029,
> "Add throw as Function Attribute":
On Tuesday, 5 May 2020 at 14:39:24 UTC, Petar Kirov [ZombineDev]
wrote:
>
> Otherwise, I'd say that the best solution, which I think Andrei
> agreed with [1] is `attribute(true)` and `attribute(false)` or
> more generally: `attribute(boolExpr)`.
>
> [1]: https://forum.dlang.org/post/mknspb$1dgl$1@digitalmars.com
Good digging! I agree with you and Andrei, but using template
syntax would be an additional improvement, it's not about saving
one char, but avoiding matching () in the common case.
attribute!true
attribute!false
attribute!(boolExpr)
More information about the Digitalmars-d
mailing list