JarrettBillingsley / Croc

Croc is an extensible extension language in the vein of Lua, which also wishes it were a standalone language. Also it's fun.
http://www.croc-lang.org
79 stars 12 forks source link

Drop class/namespace literals #98

Closed JarrettBillingsley closed 10 years ago

JarrettBillingsley commented 10 years ago

They're a bunch of syntax and compiler complexity for something that I don't think I've ever used outside of contrived coverage tests.

ligustah commented 10 years ago

How would I create a class now?

JarrettBillingsley commented 10 years ago

Oh, I got rid of class/namespace literals. These things:

local c = class{}
local n = namespace N {}

The regular declaration forms still work. Lol, I wouldn't get rid of those XD

ligustah commented 10 years ago

Ahhh, my bad. I was like "he's doing it again, back to objects!" :+1:

JarrettBillingsley commented 10 years ago

Hahahah XD