zxul767 / lox

An interpreter for the Lox language
1 stars 0 forks source link

Object Nursery Proposal #34

Closed zxul767 closed 1 year ago

zxul767 commented 1 year ago

This is a replacement for the current, error-prone "push/pop" pattern used to protect temporarily orphaned objects from the garbage collector.

See features_design.md for details on why the current pattern is problematic and how the proposed "object nursery" better solves the problem.

This fixes https://github.com/zxul767/lox/issues/19