Skip to content

Comment on List out of Lambda

Comments

Seriously, what I need in a programming language depends on what I intend to achieve with it.

I use blocks in Objective-C and "closures" in Applescript.

    to lambda(aStatment)
    	script intern
    		say aStatment
    	end script
    end lambda
    set a to lambda("applescript…")
    set b to lambda("knows how to …")
    set c to lambda("make a closure if not a lambda…")
    tell a to run
    tell b to run
    tell c to run
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.