On Saturday, 26 January 2013 at 13:21:37 UTC, Jacob Carlborg wrote:

It's always possible to avoid keywords in favor of syntax. Example:

Declaring a getter:

int foo {}

Just as a regular function declaration but without the parentheses.

Declaring a setter:

void foo= (int value) {}

Append an equal sign to the function name.

How would you declare a template property? The getter would be ambiguous with a regular function declaration, wouldn't it?

Reply via email to