Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
PHP Closures - Lightning Talk
Search
Jeremy Lindblom
September 12, 2013
Programming
2
180
PHP Closures - Lightning Talk
Lightning talk about Closures given on September 12th, 2013, to the Seattle PHP User Group.
Jeremy Lindblom
September 12, 2013
Tweet
Share
More Decks by Jeremy Lindblom
See All by Jeremy Lindblom
Diagram Like a Principal Engineer
jeremeamia
1
190
Async Guzzle - Concurrent HTTP Requests in PHP
jeremeamia
3
4.8k
What's New in PHP 7.4?
jeremeamia
0
160
Applied OOP Design Patterns: Rolling with the Punches
jeremeamia
1
200
Protecting Your Code From A Mischievous Future
jeremeamia
1
310
Iterators and Decorators and Generators, Oh My!
jeremeamia
1
360
Uploading to S3 from PHP
jeremeamia
0
160
APIs with Lumen, Guzzle, & Swagger
jeremeamia
24
7.4k
aRESTful Development with the Wordpress API
jeremeamia
0
200
Other Decks in Programming
See All in Programming
Code as Context 〜 1にコードで 2にリンタ 34がなくて 5にルール? 〜
yodakeisuke
0
120
WebViewの現在地 - SwiftUI時代のWebKit - / The Current State Of WebView
marcy731
0
110
PHPでWebSocketサーバーを実装しよう2025
kubotak
0
260
20250704_教育事業におけるアジャイルなデータ基盤構築
hanon52_
5
630
LINEヤフー データグループ紹介
lycorp_recruit_jp
0
2.1k
地方に住むエンジニアの残酷な現実とキャリア論
ichimichi
5
1.5k
Kotlin エンジニアへ送る:Swift 案件に参加させられる日に備えて~似てるけど色々違う Swift の仕様 / from Kotlin to Swift
lovee
1
260
たった 1 枚の PHP ファイルで実装する MCP サーバ / MCP Server with Vanilla PHP
okashoi
1
230
プロダクト志向なエンジニアがもう一歩先の価値を目指すために意識したこと
nealle
0
120
Composerが「依存解決」のためにどんな工夫をしているか #phpcon
o0h
PRO
1
250
PipeCDのプラグイン化で目指すところ
warashi
1
260
AWS CDKの推しポイント 〜CloudFormationと比較してみた〜
akihisaikeda
3
320
Featured
See All Featured
A designer walks into a library…
pauljervisheath
207
24k
Into the Great Unknown - MozCon
thekraken
39
1.9k
Adopting Sorbet at Scale
ufuk
77
9.4k
Documentation Writing (for coders)
carmenintech
72
4.9k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
Fireside Chat
paigeccino
37
3.5k
RailsConf 2023
tenderlove
30
1.1k
KATA
mclloyd
30
14k
The Cult of Friendly URLs
andyhume
79
6.5k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
The Straight Up "How To Draw Better" Workshop
denniskardys
234
140k
Statistics for Hackers
jakevdp
799
220k
Transcript
Closures! A lightning talk by Jeremy Lindblom! <?
What are Closures?! Closure anatomy! Closures in objects! Objects as
Closures!
A Closure is an object! that represents an! anonymous function.!
They're anonymous because they don't have a name.!
They are also called lambdas, or lambda functions.! ! This
is a reference to a branch of mathematics called lambda calculus.! Let's not even go there.!
Named functions have names so they can be referenced and
reused.! ! Anonymous functions don't need to be reused. They're great for callbacks...!
like when you are sorting…!
or mapping…!
or anything, really.!
Anatomy of a closure/lambda!
Basic closure syntax!
The use clause!
Recursive closures!
Closures in objects!
Closures in objects!
Binding!
Binding! Scope! Access!
Objects as Closures!
__invoke()!
Closures! QUESTIONS?> <?