Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Equivalent of the Scala IDE worksheet in other languages?

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.

like image 749
user967722 Avatar asked Sep 19 '12 13:09

user967722


People also ask

What is a Scala worksheet?

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.

How do I create a Scala worksheet in Intellij?

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.


2 Answers

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.

like image 192
Jörg W Mittag Avatar answered Sep 20 '22 17:09

Jörg W Mittag


IPython does something very similar for Python with its web-based worksheets feature.

like image 31
Daniel Roseman Avatar answered Sep 20 '22 17:09

Daniel Roseman