Hi Michał, Chris,

On Thu, Jun 6, 2024 at 8:53 AM Michał Marcin Brzuchalski
<michal.brzuchal...@gmail.com> wrote:
> Did you consider implementing it using some attribute?

On Sun, Jun 9, 2024 at 1:24 AM Chris Riley <t.carn...@gmail.com> wrote:
> I'm wondering why this has been attached to the existing reflection API 
> instead of being a new thing in and of itself? It doesn't seem strictly 
> related to reflection other than currently the solutions for this rely on 
> reflection to work.

Thank you for your feedback.

Currently the lazy objects feature is designed as a low-level
technical building block that libraries and frameworks can use. FFI
and Fibers are examples of such features that most users do not use
directly, but can benefit greatly from within libraries they use.

We have considered the proposed syntaxes, such as using annotations,
but these do not match the core use case of creating a lazy instance
of a class without requiring cooperation from the class itself.
Furthermore we believe that designing a higher-level API in the
language would be considerably more difficult and could put the RFC at
risk.

However, it is possible to introduce a higher-level way to create lazy
objects in a future RFC.

Best Regards,
Arnaud

Reply via email to