Open zxul767 opened 1 year ago
this is already implemented in jlox
, but not in clox
marked as p1
and not p0
because nothing catastrophic happens if you pass more arguments than expected (although we haven't stressed tested to see if we can overflow the value stack)
clock(1)
should raise a runtime error saying that "expected 0 arguments but got 1"