Closures: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 2: Line 2:


* [[Programming#Closures|Functional Programming Closures]]
* [[Programming#Closures|Functional Programming Closures]]
* [[java 8 Lambda Expressions]]
* [[Java_8_Lambda_Expressions#Variable_Capture|Java 8 Lambda Expressions]]
* [[Go_Closures#Overview|Go Closures]]
* [[Go_Closures#Overview|Go Closures]]
=Overview=
A closure is an instance of a function that can reference non-local variables of that function with no restrictions. Java 8 lambda expression are different, in that they can only refer final local variables in the scope in which the lambda was declared.

Revision as of 19:49, 25 March 2018

Internal

Overview

A closure is an instance of a function that can reference non-local variables of that function with no restrictions. Java 8 lambda expression are different, in that they can only refer final local variables in the scope in which the lambda was declared.