We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ClassName
Consider:
has ua_class => ( is => 'ro', isa => t('ClassName'), default => 'HTTP::Tiny', ); has ua => ( is => 'ro', isa => t('Object'), default => sub { shift->ua_class->new() }, );
If somebody sets ua_class to an object overloading stringification, and the stringification yields a valid classname, then what will ua be?
ua_class
ua
This seems a source for very hard to diagnose bugs, especially as things like warn $self->ua_class will hide the issue.
warn $self->ua_class
The text was updated successfully, but these errors were encountered:
This is a good question, but I don't have a good answer. I feel like I could make an argument either way.
Sorry, something went wrong.
No branches or pull requests
Consider:
If somebody sets
ua_class
to an object overloading stringification, and the stringification yields a valid classname, then what willua
be?This seems a source for very hard to diagnose bugs, especially as things like
warn $self->ua_class
will hide the issue.The text was updated successfully, but these errors were encountered: