Zhenyu Zhou wrote:
Walter Bright Wrote:but oops! That defines a field. So we came up with essentially a hack:bool empty{}weird syntax
I agree, it's a wart.
I'd rather use
bool empty=() { ... }
void empty=(bool b) { ... }
I suggested that, but Andrei thought it looked unintuitive, and he has a point.
