If like the C#/VB.NET feature:
Console.writeLine("f({0})
is {1}", x, f(x))
and I like this Ruby fature:
puts "f(#{x}) is #{f(x)}"
Neat. A #{} within a double quote is evaluated before it is sent to the puts.
Of course, you would not want to put some complicated expression within the
double quote... As with any feature, we have to use our judgment.
I hear you saying, "It does not take a whole lot to get Venkat excited." :)
Actually, I have been putting of blogging about another feature that is new to C#
that I really like.
It is in Ruby and looks a lot better in Ruby than in C#. What is it?!