什么是开放式递归? [英] What is open recursion?

查看:159
本文介绍了什么是开放式递归?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是开放递归?它是特定于OOP的吗?

What is open recursion? Is it specific to OOP?

(我在此推文中通过推荐答案

只需复制 http://www.comlab.ox.ac.uk/people/ralf.hinze/talks/Open.pdf : 开放递归大多数语言提供的带有对象和类的另一方便特性是,一个方法主体可以通过称为self或在某些语言中这样的特殊变量来调用同一对象的另一方法的能力.self的特殊行为是:它是后期绑定的,它允许在一个类中定义的方法调用第一个子类中稍后定义的另一个方法."

just copying http://www.comlab.ox.ac.uk/people/ralf.hinze/talks/Open.pdf: "Open recursion Another handy feature offered by most languages with objects and classes is the ability for one method body to invoke another method of the same object via a special variable called self or, in some langauges, this. The special behavior of self is that it is late-bound, allowing a method defined in one class to invoke another method that is defined later, in some subclass of the first. "

这篇关于什么是开放式递归?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆