You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
In Moose, if you want a data structure as a default you must use a code ref.
has list =>
default => sub { [] };
This incurs an object construction penalty for calling that code ref. This is to ensure each object gets its own reference, not the same one over and over again. Because Mite is compiled, we may be able to get around this.
has list =>
default => [];
Use Data::Dump::Streamer to dump reference defaults (except code refs) and add them to the constructor at compile time.
The text was updated successfully, but these errors were encountered:
In Moose, if you want a data structure as a default you must use a code ref.
This incurs an object construction penalty for calling that code ref. This is to ensure each object gets its own reference, not the same one over and over again. Because Mite is compiled, we may be able to get around this.
Use Data::Dump::Streamer to dump reference defaults (except code refs) and add them to the constructor at compile time.
The text was updated successfully, but these errors were encountered: