[Grace-core] Type declarations

James Noble kjx at ecs.vuw.ac.nz
Thu Mar 20 18:32:32 PDT 2014


> Good.  Hence my proposal that we write
> 
> 	const Boolean = type {&& (SelfType) -> SelfType, || (SelfType) -> SelfType, ... }

versus

	type Boolean = interface {&& (SelfType) -> SelfType; || (SelfType) -> SelfType; ... }

> const is like def, but you can't override it in sub-objects,  

I thought you didn't like "final"?

> and the value must be knowable at compile time.

right. which is certainly different to def...

J









More information about the Grace-core mailing list