4 ms·
Oh, i like this idea. Imagine your IDE just being able to substitute method calls that are just calling single line methods, for viewing only. Or even being abl
by tibbon 10y ago
Oh, i like this idea. Imagine your IDE just being able to substitute method calls that are just calling single line methods, for viewing only. Or even being able to refactor them in-line, but keep them in private methods?
- caf 10y agoParticularly if the editor can do things like constant folding and branch elimination based on constants that are being passed at that point.
- jakub_h 10y agoThat's just the editor doing the compiler's work at edit time, though. I know that Chuck Moore has always advocated extreme early binding, but that really is usually associated with Forth, not with mainstream languages.
- caf 10y agoI didn't mean that the editor would change what was presented to the compiler, just that it would simplify for the user when expanding the use of helper functions.
- slazaro 10y agoWith Visual Studio, you can visually inline the definition of a function below its call by selecting "Peek Definition", which is close to what you're saying. You can only do it one at a time, and it's for quick scanning of what the function does, though.