Code and Data in C# and Scheme
May 12, 2006
Great post by Don Box — if C#’s syntax were a little less ugly, this would actually be very elegant.
About
This page contains a single entry from Stefan Tilkov's Random Stuff posted on May 12, 2006 1:24 PM. The previous post in this blog was Why Apple will Release a Mobile Phone. The next post in this blog is Brooks's Law Explained. Many more can be found on the main index page or by looking through the archives.
Comments
I hate the syntax of the lambda expression too… why can’t we use a function-syntax like would be used in C# 2.0? Something akin to:
with(var e) { return e + 5; } // or lambda(var e) { return e + 5; }
would be much clearer than:
e => e + 5
Posted by: Marc Brooks at May 12, 2006 6:31 PM | link
Actually, I object to that part of the syntax included due to its C heritage :-)
(Not entirely serious; I understand why so many languages have adopted the rather strange C conventions, C++, C# and Java included. But mixing in more and more idioms from other languages certainly doesn’t make it any prettier …)
Posted by: Stefan Tilkov at May 12, 2006 8:11 PM | link
