Seems like a good idea to me, I agree it could be useful. One thing you could do is write a macro or function that checks the julia version at the beginning, for example
julia> check(version) = VERSION ≠ version && throw(error("wrong Julia version"))
check (generic function with 1 method)
julia> check(v"1.2.0")
ERROR: wrong Julia version
Stacktrace:
[1] check(::VersionNumber) at ./REPL[3]:1
[2] top-level scope at none:0
could throw an error if your Julia version is not correct. That’s one way I could see of doing it, if it does not end up being included in the Base
language, you could open an issue on JuliaLang github page.