<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en-us" xmlns="http://www.w3.org/2005/Atom"><title>Simon Willison's Weblog: blocks</title><link href="http://simonwillison.net/" rel="alternate"/><link href="http://simonwillison.net/tags/blocks.atom" rel="self"/><id>http://simonwillison.net/</id><updated>2010-04-23T11:19:58+00:00</updated><author><name>Simon Willison</name></author><entry><title>Ruby-style Blocks in Python</title><link href="https://simonwillison.net/2010/Apr/23/blocks/#atom-tag" rel="alternate"/><published>2010-04-23T11:19:58+00:00</published><updated>2010-04-23T11:19:58+00:00</updated><id>https://simonwillison.net/2010/Apr/23/blocks/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://tav.espians.com/ruby-style-blocks-in-python.html"&gt;Ruby-style Blocks in Python&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Yes, yes, yes, yes. A proposal for muli-line lambda support in Python that doesn’t trip up on significant whitespace. If this gets in before the proposed feature freeze I’ll be a very happy Pythonista. UPDATE: This is a post from over a year ago, and it looks like the proposal has since stalled.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/blocks"&gt;blocks&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/python"&gt;python&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/ruby"&gt;ruby&lt;/a&gt;&lt;/p&gt;



</summary><category term="blocks"/><category term="python"/><category term="ruby"/></entry><entry><title>10 Uses for Blocks in C/Objective-C</title><link href="https://simonwillison.net/2009/Nov/16/cocoa/#atom-tag" rel="alternate"/><published>2009-11-16T14:27:15+00:00</published><updated>2009-11-16T14:27:15+00:00</updated><id>https://simonwillison.net/2009/Nov/16/cocoa/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.macresearch.org/cocoa-scientists-xxxii-10-uses-blocks-cobjective-c"&gt;10 Uses for Blocks in C/Objective-C&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Part of the Cocoa for Scientists series, which is by far the best free Objective-C / Cocoa tutorial I’ve seen anywhere.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/blocks"&gt;blocks&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/closures"&gt;closures&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/cocoa"&gt;cocoa&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/macos"&gt;macos&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/objective-c"&gt;objective-c&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/science"&gt;science&lt;/a&gt;&lt;/p&gt;



</summary><category term="blocks"/><category term="closures"/><category term="cocoa"/><category term="macos"/><category term="objective-c"/><category term="science"/></entry><entry><title>Mac OS X 10.6 Snow Leopard: the Ars Technica review</title><link href="https://simonwillison.net/2009/Sep/1/siracusa/#atom-tag" rel="alternate"/><published>2009-09-01T19:05:25+00:00</published><updated>2009-09-01T19:05:25+00:00</updated><id>https://simonwillison.net/2009/Sep/1/siracusa/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://arstechnica.com/apple/reviews/2009/08/mac-os-x-10-6.ars"&gt;Mac OS X 10.6 Snow Leopard: the Ars Technica review&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
The essential review: 23 pages of information-dense but readable goodness. Pretty much everything I know about Mac OS X internals I learnt from reading John Siracusa’s reviews—this one is particularly juice when it gets to Grand Central Dispatch and blocks (aka closures) in C and Objective-C.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/apple"&gt;apple&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/blocks"&gt;blocks&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/c"&gt;c&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/closures"&gt;closures&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/grandcentraldispatch"&gt;grandcentraldispatch&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/john-siracusa"&gt;john-siracusa&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/macos"&gt;macos&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/objective-c"&gt;objective-c&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/snowleopard"&gt;snowleopard&lt;/a&gt;&lt;/p&gt;



</summary><category term="apple"/><category term="blocks"/><category term="c"/><category term="closures"/><category term="grandcentraldispatch"/><category term="john-siracusa"/><category term="macos"/><category term="objective-c"/><category term="snowleopard"/></entry><entry><title>Blocks in Objective-C</title><link href="https://simonwillison.net/2008/Dec/29/blocks/#atom-tag" rel="alternate"/><published>2008-12-29T19:38:08+00:00</published><updated>2008-12-29T19:38:08+00:00</updated><id>https://simonwillison.net/2008/Dec/29/blocks/#atom-tag</id><summary type="html">
    
&lt;p&gt;&lt;strong&gt;&lt;a href="http://www.mikeash.com/?page=pyblog/friday-qa-2008-12-26.html"&gt;Blocks in Objective-C&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;
Closures are coming soon to Objective-C - interesting syntax, a regular curly brace block preceded by a caret &lt;code&gt;^{ ... }&lt;/code&gt;.


    &lt;p&gt;Tags: &lt;a href="https://simonwillison.net/tags/blocks"&gt;blocks&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/closures"&gt;closures&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/objective-c"&gt;objective-c&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/programming"&gt;programming&lt;/a&gt;, &lt;a href="https://simonwillison.net/tags/syntax"&gt;syntax&lt;/a&gt;&lt;/p&gt;



</summary><category term="blocks"/><category term="closures"/><category term="objective-c"/><category term="programming"/><category term="syntax"/></entry></feed>