3 ms·
Python and Ruby code would likely win more beauty contest (which is actually kind of important to me) but, with the advent of C# 3 and 4, I don't think that the
by noblethrasher 16y ago
Python and Ruby code would likely win more beauty contest (which is actually kind of important to me) but, with the advent of C# 3 and 4, I don't think that there is much difference in expressive power. Not having a REPL still sucks though.
- kenjackson 16y agoYou get a poor man's REPL with the Immediate Window in the debugger. You can't create classes (or statements in general). but you can evaluate expressions. But it does appear C# REPL is coming in C# 5.0.
- noblethrasher 16y agoMono also has a REPL (http://www.mono-project.com/CsharpRepl http://www.mono-project.com/CsharpRepl).
- contextfree 16y agoThe compiler rewrite that's meant to enable REPL (along with some cool metaprogramming features, I hope) isn't targeted at 5.0, but a still later release. Though you can get a C# REPL in Mono today.
- kenjackson 16y agoReally? That sucks. (The post 5.0 thing sucks, not Mono). With REPL and Async (and the other metaprogramming stuff) I was thinking 5.0 was going to be their biggest release yet.
- balakk 16y agoF# does have a full REPL - and its imperative/OO behavior is fairly close to C#. More people(on .NET & otherwise) should look at F#.
- kenjackson 16y agoI'd use it if it had better tools support. Great language though.
- notJim 16y agoLinqPad[1] seems like a decent alternative to having a REPL. It can run anything from a C# expression to a full program. This is in addition to it's better-advertised use in debugging LINQ queries. [1]: http://www.linqpad.net/ http://www.linqpad.net/