Thoughts on #require options

T

Trans

Matz mentioned a few days ago leaving additional #require parameters
open for potential future use. What is the general opinion on the
utility of having require options --pseudo code:

module Kernel
def requre( path, options=nil )
previous = $require_options
$require_options = options || {}
Kernel.require( path )
$require_options = previous
end
end

Besides specifying lib versions I have only thought of one addtional
use, turning on/off extraneous functionality --sort of akin to compile
options in C. I'm not so sure that it's a good idea.

T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,196
Messages
2,571,036
Members
47,631
Latest member
kukuh

Latest Threads

Top