I always wondered how hard it would be to have a simple inline feature for your editor to expand small function code on demand.
1. Statically for known function calls 2. For dynamic dispatch /pattern matching, run a test , record the actually executed code and then inline that.