Using LowLoad we have the ability to make LowType easier to enable for every class inside a file.
Proposal
A magic comment at the top of the Ruby file that enables LowType for that file:
# type_expressions: true
class MyClass
include LowType # No longer needed with this magic comment!
end
Implementation
Currently an included hook triggers LowType on "class load". However this magic comment would be at the "file load" stage before any file is loaded into Ruby and before any code is actually evaluated. So this magic comment will need to trigger LowType at the "class load" phase somehow. It could add an include LowType line of code to every class... but this feels hacky, there must be a programatic way.
Using LowLoad we have the ability to make LowType easier to enable for every class inside a file.
Proposal
A magic comment at the top of the Ruby file that enables LowType for that file:
Implementation
Currently an
includedhook triggers LowType on "class load". However this magic comment would be at the "file load" stage before any file is loaded into Ruby and before any code is actually evaluated. So this magic comment will need to trigger LowType at the "class load" phase somehow. It could add aninclude LowTypeline of code to every class... but this feels hacky, there must be a programatic way.