<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Life is grand - Latest Comments in Functions as arguements</title><link>http://lifeisgrand.disqus.com/</link><description></description><language>en</language><lastBuildDate>Fri, 28 Jul 2006 10:21:59 -0000</lastBuildDate><item><title>Re: Functions as arguements</title><link>http://paulmwatson.com/journal/2006/07/28/functions-as-arguements/#comment-1280768</link><description>What's even better is that you can &lt;i&gt;return&lt;/i&gt; functions. Combined with closures, this results (for me) in a huge reduction in the need for big class hierarchies of simple classes, and drastically reduced the sort of cruft and namespace pollution that made me hate C++ so many years ago (a hatred that only diminished when i learned about templates).</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Shog9</dc:creator><pubDate>Fri, 28 Jul 2006 10:21:59 -0000</pubDate></item><item><title>Re: Functions as arguements</title><link>http://paulmwatson.com/journal/2006/07/28/functions-as-arguements/#comment-1280767</link><description>hi Paul --&lt;br&gt;&lt;br&gt;This is a reasonably common feature in dynamic languages like Perl, Python and Ruby.&lt;br&gt;&lt;br&gt;some of the things it allows are mindblowing; it gets even better when variable scoping is modified to allow "closures".  You know the java pattern whereby you need to define an interface to receive a callback, then callers need to define instances of that interface etc. etc.?  That becomes a single line of code in perl ;)  it's truly beautiful in terms of simplification and readability.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin Mason</dc:creator><pubDate>Fri, 28 Jul 2006 09:23:04 -0000</pubDate></item><item><title>Re: Functions as arguements</title><link>http://paulmwatson.com/journal/2006/07/28/functions-as-arguements/#comment-1280766</link><description>You can do that is C++ using function pointers and it's the same as Delegates in C#... you can pass a function into a function as a paramater and it can then call it etc.&lt;br&gt;&lt;br&gt;I think Java has something similar.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brian Delahunty</dc:creator><pubDate>Fri, 28 Jul 2006 06:06:07 -0000</pubDate></item></channel></rss>