Hi

see also my previous reply to your email where you initially mentioned init hooks.

On 7/9/25 19:11, Larry Garfield wrote:
Can an init hook reference itself, the way get and set can?

If the init hook references its own property you will get endless recursion.

If there is both an init and set hook, what happens?  Is it different if set 
reads from itself than if it writes to itself?

The first bit I answered in my previous email. If set reads from itself and the property is uninitialized, it will invoke the init hook.

Should combining init and set be forbidden as confusing?

No.

Can you have both an init hook and a get hook?  What happens then?

See previous email.

Repeat all of the above on readonly properties.

No difference, except that the 'get' hook should not be allowed there.

there is a reasonable solution right in front of us that is trivial to 
implement.

I disagree on the "reasonable" part.

Best regards
Tim Düsterhus

Reply via email to