Multimethods are similar to generic functions in other languages such as Common Lisp.
多重方法类似于其他语言中的一般函数,如 Common Lisp。
However, multimethods can also be obtained as part of the overall Gnosis Utilities package.
然而,multimethods也可以作为Gnosis utilities包的一个部分获得。
The multimethods module gives you both a quick way of calling less specific rules, and a more fine-tuned way.
multimethods模块提供了调用不太特定的规则的一条捷径和一种更为精调的方式。
In order to read and write Clojure data structures we just use the idiomatic print-dup, which allows you to define multimethods to dispatch your printers.
要读写Clojure数据结构,我们只需使用print - dup语句即可,它可以让我们定义multimethods来分派printers。
Standard Python does not let you configure this type of multiple dispatch; but fortunately, you can do so using the module multimethods that I have written.
标准Python不允许配置这种类型的多分派;但幸运的是,您可以使用我所编写的模块multimethods来做到这一点。
Perl has a module called Class::Multimethods to implement multiple dispatch (and apparently Perl 6 is slated to build the concept more deeply into the language).
Perl拥有实现多分派的模块Class::Multimethods (显然,Perl6为在语言中更深入构建该概念铺平了道路)。
Still, given the natural association of this idea with my own multiple dispatch module (multimethods), I am excited to look at PEAK's extensions to dispatch styles.
而且,这种思想可以与我的多分派模块(multimethods)很自然地结合起来,我很高兴看到PEAK可以对分派风格进行扩展。
Still, given the natural association of this idea with my own multiple dispatch module (multimethods), I am excited to look at PEAK's extensions to dispatch styles.
而且,这种思想可以与我的多分派模块(multimethods)很自然地结合起来,我很高兴看到PEAK可以对分派风格进行扩展。
应用推荐