stevan / p5-universal-object Goto Github PK
View Code? Open in Web Editor NEWA useful base class
A useful base class
It breaks when $self overloads stringification.
Use Scalar::Util::reftype($self)
instead.
See RT #119521
This line here:
https://github.com/stevan/p5-UNIVERSAL-Object/blob/master/lib/UNIVERSAL/Object.pm#L64
Otherwise, if you've got a class with multiple required attributes, it's unpredictable what exception will be thrown.
package Foo;
use parent qw(UNIVERSAL::Object);
our %HAS = (
bar => sub { die 'bar required' },
baz => sub { die 'baz required' },
);
__PACKAGE__->new;
I have been assigned this distro for the August Pull request challenge. How may I help?
Related to #8, could I add Travis support for checking patches and new builds?
There's a drive to include META.json in all distros, could I do that? Related to #8, too.
If MOP
is loaded in the %INC
we can add in MOP::Role
support, but if not we could just let it default to UNIVERSAL::DOES
version.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.