2 ms·
> Are you thinking of something like Ruby's modules and `include` directives? Unfortunately I'm not very familiar with Ruby, so I'm not sure > Is there a reas
by _bxg1 7y ago
> Are you thinking of something like Ruby's modules and `include` directives?
Unfortunately I'm not very familiar with Ruby, so I'm not sure
> Is there a reason the editor has to do this rather than the language?
The language would definitely have to support it (though maybe you could accomplish something similar with annotations and/or special comments in an existing language), but without special editor support you wouldn't gain much from it. Your constructs would still be scattered across files in ways that make compromises. Whereas editor support could pretend the files don't exist at all.