Groovy Dynamically extend GStringImpl class to automatically invoke .toString() -
on this post @jalopaba explains in answer
gstringcan involve lazy evaluation it's not untiltostring()method invokedgstringevaluated.
can dynamically extend gstringimpl invoke tostring() on construction?
wouldn't easier override put method of map check whether key gstring , if yes, invoke tostring method? after invoke original method new key. same get.
Comments
Post a Comment