in reply to Re^5: oop, variable that counts the number of objects created
in thread oop, variable that counts the number of objects created

I am not asking what it does. I am asking why it's literally "has" and the declarative pattern is used so widely.
  • Comment on Re^6: oop, variable that counts the number of objects created

Replies are listed 'Best First'.
Re^7: oop, variable that counts the number of objects created
by tobyink (Canon) on Jul 30, 2020 at 23:55 UTC

    The has keyword is from Raku, or as it was called at the time, Perl 6. Moose copied it. Others copied Moose.