HaloO, Mark J. Reed wrote:
Type checking in both js2/ecma4 and p6 is not merely documentation. It is enforced, but only if present. This is a tricky thing to achieve, which is why I suggested reading the js stuff to see how they went about it.
I like the 'like' operator that does a structural inspection. Would that be worth an addition to Perl 6? We already have 'can' for single methods. Regards, TSa. -- "The unavoidable price of reliability is simplicity" -- C.A.R. Hoare