On 2019-01-15 12:53, Walter Bright wrote:

Template expressions can't, either, but what they do is hijack the syntax for completely different purposes. The poor reader will be looking at code, and it will behave nothing like the syntax suggests.

Ah, you mean like this:

struct MyInt
{
    private int value;

    MyInt add(MyInt other)
    {
        return MyInt(value - other.value);
    }
}

Perhaps we shouldn't support user defined types or functions either ;)

--
/Jacob Carlborg

Reply via email to