Showing posts with label functions as first class citezens. Show all posts
Showing posts with label functions as first class citezens. Show all posts

Saturday, November 28, 2009

left sided function asignment

ב''ה


Perhaps I am awestruck by this feature of perl because the 4gl language that I usually develop in has nothing like this. This is the first time I am seeing this feature in any language, although I think VB might also have it...


At any rate, assigning to a function (or to what comes back from a function call) seems to be in line with treating functions as first class citizens. Stand up for their rights people. Let them vote!


substr($foostring, 5, 3) = "foobarfoobar"