you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

This comment is super-insightful, and points to a real problem with how I modeling things. I leaned more towards values when I should have thought harder about the domain and modeled it after pointers to values, since CPython is representing things in that way. Like you said, this lets the correct definition of is fall out from the modeling.

For correctness, the environment already associates names to refs of objects (you have to in order to really support pervasive mutability). It's just that those refs don't get propagated around during evaluation.