всички настройки
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ Източник: libperlx-maybe-perl  ]

Пакет: libperlx-maybe-perl (1.202-1)

Връзки за libperlx-maybe-perl

Screenshot

Ресурси за Debian:

Изтегляне на пакет-източник libperlx-maybe-perl.

Отговорници:

Външни препратки:

Подобни пакети:

return a pair only if they are both defined

Moose classes (and some other classes) distinguish between an attribute being unset and the attribute being set to undef. Supplying a constructor arguments like this:

    my $bob = Person->new(
       name => $name,
       age => $age,
       );

Will result in the "name" and "age" attributes possibly being set to undef (if the corresponding $name and $age variables are not defined), which may violate the Person class' type constraints.

PerlX::Maybe checks that $x and $y are both defined. If they are, it returns them both as a list; otherwise it returns the empty list.

This package also includes Syntax::Feature::Maybe.

Етикети: Software Development: Perl Development, Библиотеки, Implemented in: Пърл

Други пакети, свързани с libperlx-maybe-perl

  • зависимости
  • препоръчани
  • предложени
  • enhances

Изтегляне на libperlx-maybe-perl

Изтегляне за всички налични архитектури
Архитектура Големина на пакета Големина след инсталиране Файлове
all 13,8 кБ38,0 кБ [списък на файловете]