`checkLocation` vs `checkBind` when `isLoad=false`

I might be missing something, but where is the read in evalStore? Since we invoke evalLocation with isLoad=false, I’d expect that to be a store.

There is also another difference here. It looks like evalLocation is called unconditionally, but evalBind is only called when we have a proper location. This almost sounds like as if evalLocation would have the purpose of emitting diagnostics (e.g., checking if we are loading an undef value), and evalBind would be for modeling extra logic on a successful store.

I am not 100% convinced whether this distinction is useful, but if we want evalBind to replace checkLocation, we’d need to invoke checkBind unconditionally here.

Indeed, it looks like this one is not a trivial change to make.