sanko / Affix.pm

A Foreign Function Interface eXtension for Perl
https://metacpan.org/dist/Affix
Artistic License 2.0
1 stars 0 forks source link

Return of Maybe[...] ...perhaps #11

Open sanko opened 1 year ago

sanko commented 1 year ago

Wrapping a type in Maybe[...] or Optional[...] could function a lot like their Types::Standard counterparts. Right now, Void is being used to skip over unwanted vars (for things like generating automatic constructors that don't want the package name like perl's new() would) in LibUI.pm. Maybe[...] could wrap trailing parameters that might be optional. This might be a code smell upstream though.