【24h】

Monads, Zippers and Views

机译:单子,拉链和美景

获取原文
获取原文并翻译 | 示例

摘要

We make monadic components more reusable and robust to changes by employing two new techniques for virtualizing the monad stack: the monad zipper and monad views. The monad zipper is a higher-order monad transformer that creates virtual monad stacks by ignoring particular layers in a concrete stack. Monad views provide a general framework for monad stack virtualization: they take the monad zipper one step further and integrate it with a wide range of other virtualizations. For instance, particular views allow restricted access to monads in the stack. Furthermore, monad views provide components with a call-by-reference-ike mechanism for accessing particular layers of the monad stack. With our two new mechanisms, the monadic effects required by components no longer need to be literally reflected in the concrete monad stack. This makes these components more reusable and robust to changes.
机译:通过采用两种虚拟化monad堆栈的新技术,我们可以使monadic组件更易于重用并且对更改具有鲁棒性:monad zipper和monad视图。 monad拉链是一种高阶monad转换器,它通过忽略具体堆栈中的特定层来创建虚拟monad堆栈。 Monad视图为monad堆栈虚拟化提供了一个通用框架:将monad拉链更进一步,并将其与各种其他虚拟化集成在一起。例如,特定视图允许限制访问堆栈中的monad。此外,单子视图为组件提供了按引用调用机制,用于访问单子堆栈的特定层。通过我们的两种新机制,组件所需的单子效果不再需要从字面上反映在混凝土单子堆栈中。这使这些组件更可重用,并且对更改具有较强的鲁棒性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号