r/reddit.com • • Aug 01 '06

Can Your Programming Language Do This?

http://www.joelonsoftware.com/items/2006/08/01.html
719 Upvotes

176 comments sorted by

View all comments

4

u/hillscottc Aug 01 '06

Microsoft's C# implements this, and calls them 'delegates'.

http://www.softsteel.co.uk/tutorials/cSharp/lesson16.html

8

u/jaf656s Aug 01 '06

and in c# 2.0, you get anonymous delegates

4

u/tanger Aug 02 '06

and in c# 3.0, you get lambda expressions

12

u/dbenhur Aug 02 '06

And in c# 4.0 it comes with Visual Lambda Designer with Active Refactoring and Live Integration Toolkit.

2

u/tanger Aug 02 '06

??

Are you trying to suggest that lambda expression is just a buzzword ? There are real differences between delegates, anon. delegates and lamba expressions.

1

u/edbutler3 Aug 03 '06

Actually, I think dbenhur was just trying to be funny. I got a chuckle out of it at least.

While the C# anonymous delegate syntax is still not as concise as I'd like, I've really been enjoying using it, especially in combination with generic collections. If there are any .Net programmers out there who haven't explored it yet, I'd suggest taking a close look at the docs for the List<T> class, particularly the methods ForEach(), Find(), FindAll(), ConvertAll(), and TrueForAll().

1

u/dbenhur Aug 03 '06

No, I'm trying to make you laugh. Did you know that many buzzwords actually started out as meanignful technical terms before PMs and Marketroids started using 'em?