News for hackers. Stuff that matters.
Re:Lisp is Too Powerful by noblethrasher on Saturday December 24, 2011 @01:10PM (#3389315)
C# also gets knocked for verbosity (though it's a bit better than Java). But with manifest typing (which is optional since C# 3.0), judicious use implicit cast, and `dynamic` the language can be made concise and elegant.

An example from my library[1]:

    SqlCommandEx sql = "select * from person";

    foreach (dynamic p in sql)
    {
        var full_name = p.first_name + " " + p.last_name;
        var age = ((DateTime)p.dob).YearsAgo();

        //etc
    }
    //automatically disposes the connection

[1]: https://github.com/noblethrasher/Prelude

There are no comments on this comment yet.