DIP 1029---Add throw as Function Attribute---Community Review Round 1

Alexandru Ermicioi alexandru.ermicioi at gmail.com
Thu Jan 16 16:51:52 UTC 2020


On Thursday, 16 January 2020 at 02:27:22 UTC, James Blachly wrote:
> This is a perfect opportunity to harmonize things that, for 
> very little downside, improve the apparent coherence of the 
> language.
>
> "throws" also sounds far more grammatical than "throw"

On top of that having all attributes with @ syntax would allow 
for them to be defined as simple UDAs in runtime, make them 
available for introspection in templated code and allowing to 
getting rid of functionAtrributes traits. Moreover this would 
allow easy extension of those attributes with additional data, be 
it template arguments or struct fields.

Best regards,
Alexandru.


More information about the Digitalmars-d mailing list