From 520acd39795766354fc44c6e15f5f33f255ca33a Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 16 Jan 2019 21:33:02 -0800 Subject: Overhauling OO-API a little to make it more minimalistic. --- containers.moon | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'containers.moon') diff --git a/containers.moon b/containers.moon index 29e31c4..3e7b1a8 100644 --- a/containers.moon +++ b/containers.moon @@ -24,7 +24,7 @@ nth_to_last = (n)=> @[#@-n+1] -- used in Nomsu. This way, they retain a notion of whether they were originally lists or dicts. _list_mt = - __type: "List" + __type: "a List" __eq: (other)=> unless type(other) == 'table' and getmetatable(other) == getmetatable(@) and #other == #@ return false @@ -107,7 +107,7 @@ List = (t)-> else error("Unsupported List type: "..type(t)) _dict_mt = - __type: "Dict" + __type: "a Dict" __eq: (other)=> unless type(other) == 'table' and getmetatable(other) == getmetatable(@) return false -- cgit v1.2.3