Yes, the syntax for declaration is perfectly doable. The field overloading is so that you can have Direction both be a type and write Direction.NORTH.
On Wed, Feb 19, 2014 at 3:32 PM, Fil Mackay <[email protected]>wrote: > On Thursday, February 20, 2014 3:52:12 AM UTC+11, Stefan Karpinski wrote: >> >> Yeah, I pretty much agree with all of this. Once field access is >> overloadable, we can just create a Direction type and define >> (automatically) the following methods: >> > > Wouldn't this syntax would be doable now without field overload? > > @enum Direction begin > NORTH = 0 > EAST = 1 > WEST = 2 > SOUTH = 3 > end > >
