2 ms·
Most Ruby implementations have some kind of inline cache - they remember at each call site what object you normally see there, and what method you're normally c
by chrisseaton 13y ago
Most Ruby implementations have some kind of inline cache - they remember at each call site what object you normally see there, and what method you're normally calling. Could you get that data out and use it to report the correct method at each call site?
- montanalow 13y agoThe dynamism of ruby does make things difficult, if not impossible, to fully realize until runtime. Incidentally, tests are popular in ruby, and give us runtime examples to work with for stronger analysis. If we're just spitballing, as big as TDD is in rubyland, I'd love to see tests themselves become first class documentation, built with the rest of the class docs as yet another form of annotation.