tags:

views:

1296

answers:

3

During the last 10 minutes of Ander's talk The Future of C# he demonstrates a really cool C# Read-Eval-Print loop which would be a tremendous help in learning the language.

Several .NET4 related downloads are already available: Visual Studio 2010 and .NET Framework 4.0 CTP, Visual Studio 2010 and .NET Framework 4 Training Kit. Do you know what happened to this REPL? Is it somewhere hidden among examples?

I know about mono repl. Please, no alternative solutions.

+9  A: 

The REPL demo was part of "what might happen next", i.e. after 4.0; in .NET 5.0 or something similar.

This is not 4.0 functionality, and never has been.

Marc Gravell
I assumed that he demonstration was in response to this post to a similar technology in Mono: http://tirania.org/blog/archive/2008/Sep-10.html
plinth
I'm sure that was a contributing factor...
Marc Gravell
Yes, Mono's repl is quite good (for those who doesn't know it, get mono, then monodir/bin/gsharp or /bin/gsharp). But I miss the ability of adding functions the same way Anders does.
Richard J. Terrell
As an alternative I am using http://www.sliver.com/dotnet/SnippetCompiler and Mono's REPL currently, but it would be really nice to have a decent C# Repl.
Richard J. Terrell
+2  A: 

Marc's answer is entirely correct, the possibility of a repl or script like c# has been discussed by Eric Lippert in two blog posts:

I would add that, the 2010 CTP does contain an f# repl (not much use for c# but if you were interested in some aspect of the BCL or CLR then it might be sufficient for your needs)

I find that LINQPad makes up for the lack of a REPL in many cases. It would be nice to get it integrated into Visual studio so you could interact with your existing code base more easily though.

ShuggyCoUk
The hint about F# Interactive is very helpful. I use this often to quickly test out stuff like the Regex classes, networking classes, etc.
Armentage
+2  A: 

It's probably worth mentioning that the Mono project already does have a C# REPL which i tend to use for those small checks you do now and then. Take a look. Also, if I'm testing an idea which I'm uncomfortable Mono is going to handle to well and it's not worth starting a new test project then Snippet Compiler always comes in handy.

Stimul8d