[ruby-core:71136] Re: [Ruby trunk - Feature #11415] autoload with a Proc

From: Eric Wong <normalperson@...>
Date: 2015-10-21 20:36:45 UTC
List: ruby-core #71136
matz@ruby-lang.org wrote:
> > I hate autoload. autoload is one of things I regret. I'm not positive about enhancing something I hate.
> -- matz in https://speakerdeck.com/skade/the-dark-side-of-matz-1

Would you like autoload if Ruby didn't have threads? :)

Anyways, I think autoload is somewhat useful for improving startup
times; but the interaction with threads is currently dangerous.

> How about using `const_missing`?

Using that would be even more fragile, I think.

In This Thread

Prev Next