Closed zombiezen closed 2 years ago
@AdamSLevy When you get a chance to review, this would help me with some code I'm working on. Let me know if there's anything I can do to help.
I support adding the function to the API but I don't agree with change Stmt.bindNames
to a slice over a map. Consider that findBindName is called for every Set
operation. I'd rather keep the map and add the cached slice as well. I'm going to fix up your PR according to that.
I changed
Stmt.bindNames
to a slice, since the elements are a small, contiguous sequence.