Exploring C# through the Immediate window

Scripting languages enjoy great popularity, in part due to the immediate feedback they provide the developer. Rather than have to write code, compile it, and then execute it to see if the desired behavior occurs, many scripting languages offer a read-eval-print-loop (REPL). A REPL gives the developer the ability to watch their code execute about as fast as they can write it.

There are several advantages to this approach. First, you can explore a library or code fragment without having to first set up a new solution. Second, it allows one to experiment with different possible approaches when problem solving. By being able to quickly iterate, it can bring about a working solution more quickly.

Visual Studio ...

Get Visual Studio 2015 Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.