A worksheet is a Scala file that is evaluated on save, and the result of each expression is shown in a column to the right of your program. Worksheets are like a REPL session on steroids, and enjoy 1st class editor support: completion, hyperlinking, interactive errors-as-you-type, auto-format, etc. (source https://github.com/scala-ide/scala-worksheet/wiki/Getting-Started)
Is there anything similar in any other language? I mean, I know about REPL in other dynamic languages, but what the worksheet does s much more.
A worksheet is a Scala file that is evaluated on save, and the result of each expression is shown in a column to the right of your program. Worksheets are like a REPL session on steroids, and enjoy 1st class editor support: completion, hyperlinking, interactive errors-as-you-type, etc.
Right-click your project and select New|Scala Worksheet. We recommend that you create an . sc file in the src directory to avoid problems with code highlighting. In the New Scala Worksheet window, type the name of the file and click OK.
This is not really a language feature, more an IDE feature.
It looks like a pretty straightforward clone of the Transcript
window which has been a standard part of Smalltalk IDEs since at the least the 1980s.
One of those Smalltalk IDEs is IBM VisualAge for Smalltalk (where it was called Scrapbook), which later became IBM VisualAge for Java, which became IBM VisualAge for Java Micro Edition, which became Eclipse, and in fact the Eclipse Java Development Tools still have that feature today.
Lisp and Forth IDEs also usually have something similar, often called a listener.
LINQPad is a product which provides a similar experience for C#, VisualBasic.NET and F#.
Pry is still in its infancy, but its goal is to morph into a full interactive IDE for Ruby.
IPython does something very similar for Python with its web-based worksheets feature.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With