January 20, 2024 [Issue 24346] Lambda as UDA is valid but spec requires brackets | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24346 hsteoh@qfbox.info changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hsteoh@qfbox.info --- Comment #1 from hsteoh@qfbox.info --- I'm inclined to say that parentheses should be required, for consistency with the single-token requirement on unparenthesized UDAs. (Cf also binary `!` syntax, where the unparenthesized version also requires exactly 1 token, and in all other cases parentheses are required.) -- |
Copyright © 1999-2021 by the D Language Foundation