Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37571596
en ru br
Репозитории ALT

Группа :: Разработка/Perl
Пакет: perl-Sub-Infix

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Текущая версия: 0.004-alt2
Время сборки: 29 июля 2023, 18:21 ( 39.1 недели назад )
Размер архива: 19.60 Kb

Домашняя страница:   https://metacpan.org/release/Sub-Infix

Лицензия: perl
О пакете: create a fake infix operator
Описание:

Sub::Infix creates fake infix operators using overloading. It doesn't
use source filters, or the Devel::Declare manpage, or any of that magic. (Though
Devel::Declare isn't magic enough to define infix operators anyway; I
know; I've tried.) It's pure Perl, has no non-core dependencies, and
runs on Perl 5.8.

The price you pay for its simplicity is that you cannot define an
operator that can be used like this:

  my $five = 2 plus 3;

Instead, the operator needs to be wrapped with real Perl operators in
one of three ways:

  my $five = 2 |plus| 3;
  my $five = 2 /plus/ 3;
  my $five = 2 <<plus>> 3;

The advantage of this is that it gives you three different levels of
operator precedence.

You can also call the function a slightly less weird way:

  my $five = plus->(2, 3);

Текущий майнтейнер: Igor Vlasenko

Список всех майнтейнеров, принимавших участие
в данной и/или предыдущих сборках пакета:

Список rpm-пакетов, предоставляемый данным srpm-пакетом:

  • perl-Sub-Infix
ACL:
     
    дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
    текущий майнтейнер: Michael Shigorin