On Wed, Jun 8, 2022 at 2:39 PM Felipe Gasper <felipe@felipegasper.com> wrote: > Attaching metadata to plain scalars could be powerful. It feels like it > would encourage âweirdnessâ, but I havenât researched it. I know > decorator-type things are a common feature in other languages. > Side note: there are many awesome things we could do with metadata, if we could find a decent API. The difference between "uninitialized" and "undefined" would be amazing. Pseudo-code because I have no idea what an API would look like: sub name ($self, ?$name) { if ( not builtin:uninitialized($name) ) { # or: builtin:initialized($name) would return true even if undef $self->{name} = $name; } return $name; } That would make it *much easier* to eliminate @_. Best, Ovid CTO, All Around the World World-class software development and consulting https://allaroundtheworld.fr/Thread Previous | Thread Next