This actually works reasonably well in Perl, where you can, for example, stick "use 5.22.2;" in a script and thus enable all the features of that version (and the versions before it) while keeping the features of newer versions disabled, thus ensuring backward compatibility.