5 ms·
I hope I'm not reading this wrong... But is the new "C# Interactive Window" a C# REPL? That would be amazing.
by kpeel 11y ago
I hope I'm not reading this wrong... But is the new "C# Interactive Window" a C# REPL? That would be amazing.
- daigoba66 11y agoIt's actually been there since Update 1.
- sea6ear 11y agoThanks for this. It was a welcome surprise to go to View->Other Windows and see this. I'll have to update soon to the new version to see the additional features it's gained.
- cmpb 11y agoYes, but I've found it to be lacking usability-wise (e.g. it doesn't load the current project's dependencies, and it doesn't provide an easy way to load in dependencies from your project [someone please correct me if I'm wrong!]).
- dimgl 11y agoIs this any different from the Immediate Window in Visual Studio?
- MichaelGG 11y agoImmediate is AFAIK a limited subset available during debugging. C# Interactive is what F# has had for years (F# Interactive), and even Mono has had something like this for a while. You can enter snippets of C# and eval like a real REPL. Update 2 brings project context support so you can just open the REPL and do stuff like var x = new MyType().
- sunnya 11y agoYou might want to check out a web based C# REPL: http://csharppad.com http://csharppad.com
- smortaz 11y agoYep! This started life as the PTVS (Python Tools for VS) REPL and now Python, Node.js, C#, R, ... are using it.
- mike1o1 11y agoscriptcs (http://scriptcs.net/ http://scriptcs.net/) is another awesome REPL for C# that's built on top of Roslyn. I've found it to be extremely flexible and handy for writing quick tools.