全部搜尋項
buster  ] [  bullseye  ] [  bookworm  ] [  trixie  ] [  sid  ]
[ 原始碼: liblexical-failure-perl  ]

套件:liblexical-failure-perl(0.001001-1)

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。9 kB71。0 kB [檔案列表]