全部搜索项
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 源代码: liblexical-failure-perl  ]

软件包:liblexical-failure-perl(0.000007-3)

liblexical-failure-perl 的相关链接

Screenshot

Debian 的资源:

下载源码包 liblexical-failure-perl

维护小组:

外部的资源:

相似软件包:

Perl module for user-selectable lexically-scoped failure signaling

Lexical::Failure sets up two new keywords: fail and ON_FAILURE, with which you can quickly create modules whose failure signaling is lexcially scoped, under the control of client code.

Normally, modules specify some fixed mechanism for error handling and require client code to adapt to that policy. One module may signal errors by returning undef, or perhaps some special "error object". Another may die or croak on failure. A third may set a flag variable. A fourth may require the client code to set up a callback, which is executed on failure.

If you are using all four modules, your own code now has to check for failure in four different ways, depending on where the failing component originated. If you would rather that all components throw exceptions, or all return undef, you will probably have to write wrappers around 3/4 of them, to convert from their "native" failure mechanism to your preferred one.

标签: 软件开发: Perl 开发, 函数库, 实做语言: Perl

其他与 liblexical-failure-perl 有关的软件包

  • 依赖
  • 推荐
  • 建议
  • 增强

下载 liblexical-failure-perl

下载可用于所有硬件架构的
硬件架构 软件包大小 安装后大小 文件
all 26.7 kB72.0 kB [文件列表]