随笔分类 - 编程语言
摘要:Normally, in a typed language, the dispatch mechanism will be performed based on the type of the arguments (most commonly based on the type of the rec
阅读全文
摘要:Late binding, or dynamic binding,[1] is a computer programming mechanism in which the method being called upon an object or the function being called
阅读全文
摘要:C++中的虚函数(Virtual Function)是用来实现动态多态性的,指的是当基类指针指向其派生类实例时,可以用基类指针调用派生类中的成员函数。如果基类指针指向不同的派生类,则它调用同一个函数就可以实现不同的逻辑,这种机制可以让基类指针有“多种形态”,它的实现依赖于虚函数表。虚函数表(Virt
阅读全文
摘要:绑定:建立联系; 分发:作出选择。 https://en.wikipedia.org/wiki/Dynamic_dispatch https://en.wikipedia.org/wiki/Late_binding Dynamic dispatch is different from late bi
阅读全文
摘要:对象指针本身也是接口中的一个参量。 然而,在更广阔的计算机领域中,多态这个词并不只是局限在类继承和虚函数上。只要是同名函数能够根据参数的类型不同而获得不同的实现,我们都可以叫它“多态”。 多态可以分成三类,Ad hoc 多态(Ad hoc ~),参数化多态(Parametric ~),子类型多态(S
阅读全文
摘要:所谓的多态是将类似的不同实现统一到一个(组)接口的能力; 涉及到两个方面:1)抽象能力;2)面向接口(忽略载体、对象)。 Polymorphism is the ability of the programmer to write methods of the same name that do d
阅读全文
摘要:Smalltalk is an object-oriented, dynamically typed, reflective programming language. Smalltalk was one of many object-oriented programming languages b
阅读全文
摘要:Simula is the name of two simulation programming languages, Simula I and Simula 67, developed in the 1960s at the Norwegian Computing Center in Oslo,
阅读全文
摘要:你可能听说过函数式编程(Functional programming),甚至已经使用了一段时间。 但是,你能说清楚,它到底是什么吗? 网上搜索一下,你会轻松找到好多答案。 与面向对象编程(Object-oriented programming)和过程式编程(Procedural programmin
阅读全文
摘要:In computer science, imperative programming is a programming paradigm that uses statements that change a program's state. In much the same way that th
阅读全文
摘要:Aspect Oriented Programming(面向方面编程,简称AOP)是一种Declarative Programming(声明式编程)。Declarative Programming(声明式编程)是和Imperative Programming(命令式编程)相对的概念。我们平时使用的编
阅读全文
摘要:Object-oriented programming (OOP) is a programming paradigm based on the concept of "objects", which may contain data, in the form of fields, often kn
阅读全文
摘要:Prototype-based programming is a style of object-oriented programming in which behaviour reuse (known as inheritance) is performed via a process of re
阅读全文
摘要:范式:编程模式,将数据和算法封装到一起; 思想:系统论和世界观:系统是一系列相互关联的对象组成的。
阅读全文
摘要:拉姆达值(Lambda),希腊字母表示为Λ,指与真空的空间有关的能量或暗能量。 代表转换的常量、或者转换本身。 Lambda 表达式 Lambda 表达式”是一个匿名函数,可以包含表达式和语句,并且可用于创建委托或表达式目录树类型。 所有 Lambda 表达式都使用 Lambda 运算符 =>;,该
阅读全文
摘要:In computer science, a function or expression is said to have a side effect if it modifies some state outside its scope or has an observable interacti
阅读全文
摘要:In computer science, functional programming is a programming paradigm—a style of building the structure and elements of computer programs—that treats
阅读全文
摘要:n computer science, reflection is the ability of a computer program to examine, introspect, and modify its own structure and behavior at runtime.[1] A
阅读全文
摘要:Generic programming is a style of computer programming in which algorithms are written in terms of types to-be-specified-later that are then instantia
阅读全文
摘要:声明式编程需要底层或运行时环境支持。 声明式语言的关键词确定了执行的关键控制流。 表述编程语言是说明性的东西;而不是具体的执行方案。 通常他的执行由解释器进行。 In computer science, declarative programming is a programming paradig
阅读全文