On 5 February 2018 at 12:54, Marco Pivetta <ocram...@gmail.com> wrote:

> On Mon, Feb 5, 2018 at 1:52 PM, Rowan Collins <rowan.coll...@gmail.com>
> wrote:
>
>> None of these options is particularly appealing, and this will all be for
>> a
>> hypothetical future improvement to the language.
>>
>
> Would proposing a function autoloading RFC together with this improve the
> situation?
>

I think it would, firstly because it gives a visible benefit to the change
we would be asking users to make, and secondly because it allows a shim
like the example in the RFC to be used immediately as a transition.

As I mentioned in an aside previously, it would also make an opt-in
statement more reasonable, because saying "namespace Foo\Bar with autoload"
could both turn off the fallback lookup and turn on autoloading functions
in the current namespace. Fully-qualified function names could be
autoloaded in both modes, and presumably functions explicitly imported with
"use" could be too.

Regards,
-- 
Rowan Collins
[IMSoP]

Reply via email to