amuletml / amulet

An ML-like functional programming language
https://amulet.works/
BSD 3-Clause "New" or "Revised" License
328 stars 16 forks source link

Very big code results in too many locals #285

Open plt-amy opened 4 years ago

plt-amy commented 4 years ago

Like ahc, but really, anything big enough will get you above the local limit.

SquidDev commented 4 years ago

This is one of those ones I really don't know how to solve in a sensible way. Obviously we should be re-using locals inside functions, but some of this happens at the top level which makes things much harder.

plt-amy commented 4 years ago

Count all the locals that happen at top-level, shove them in a locals table instead, or even make them globals after the limit?