Do you know any other programming languages ​​that have interactive mode like Python?

Python has a well-known interactive mode function, where the interpreter can read commands directly from tty.
I usually use this mode to check if a given module is in the classpath or to play and check some fragments.

Do you know any other programming languages ​​that have an interactive mode?

If you can, indicate the name of the languages ​​and, where possible, a web link.
If this has already been mentioned, you can simply vote for it.

+6
python language-agnostic programming-languages language-features
source share
31 answers
  • one
  • 2

Most (all?) Lisps (including generic lisp, schema, and clojure), sml, ocaml, haskell, F #, erlang, scala, ruby, python, lua, groovy, prolog.

+25
source share
+5
source share

bash / tcsh / csh / ksh / ...

they are all programming languages ​​and have CLI :)

+5
source share

Haskell even has two (main) interactive interpreters, Hugs and ghci .

+5
source share

Tcl / tk has one. He was there from day one. This is not a unique feature for Python.

+5
source share

As already mentioned, many languages ​​can be used interactively, although, as conveniently, they can be used so that they are slightly different. The interactive environment that I am most familiar with and the one that I found among the most suitable of all the free interactive programming environments that I tried (not that I tried all of them) is Slime, a mode for emacs that allows you to interact with running shared Lisp, and can also be used with Clojure, a Lisp for the JVM.

If Lisp is not your cup of tea, then many Smalltalk environments are worth mentioning. One of the interesting features of many Smalltalk systems is that they provide almost all of the code that the system implements in the programming environment — if you want you to be able to view or even rewrite parts of the programming environment when you use it, just like you will write new code. In fact, the line between the system provided to you and the code you write is pretty blurry. Squeak is an interesting, free Smalltalk, and Cincom offers an evaluation version of its commercial Smalltalk, which is an excellent IMHO environment.

In any case, if you are interested in playing with interactive environments, you can do worse than playing with these two, although, of course, there are many other systems that allow interactive programming to one degree or another.

+5
source share

Lisp and circuit has an interactive mode.

+3
source share

C ++.

Seriously .

+3
source share

Ruby has irb , which is an interactive interpreter, and Ruby is very similar to Python.

irb on irb
Ruby on Wikipedia

+2
source share

Perl - interestingly there are so many answers before this

+2
source share

Ruby has this .. Groovy also has the ability (also allows you to effectively test Java code).

+1
source share

I guess one of the first was LISP. Just try clisp

+1
source share

Most scripting languages ​​will read from stdin and execute the code entered on the console if you do not specify a file name to run. Php and perl will all do this.

Ruby has irb.

Lua has a more formal interactive mode, such as python, that will show you the indentation level of your code in a tooltip. This is very useful since lua is usually used as the built-in scripting language, and you do not need to run the full application to test the code snippets.

+1
source share

Lua also has an interactive mode.

+1
source share

Oh, I forgot BASIC :)

+1
source share

Prolog has and

+1
source share

Even Java has one!

It is called Beanshell: http://www.beanshell.org/

+1
source share

There is one for C # .

+1
source share

FORTH immediately comes to mind.

So does APL.

I remember how I saw the interactive implementation of FORTRAN on the SDS-930 (I think), many, many years ago.

+1
source share

You can do almost interactive C # and VB.NET using LINQPad

+1
source share

Logo .

Some implementations are so interactive that some people don’t even use any other mode.

+1
source share

Here repl for C too.

+1
source share

R statistical program;)

+1
source share

Highlights on VIC20 and C64

+1
source share

Any interpreted language is likely to have.

+1
source share

Erlang , as well as Haskell , and I assume Ruby . There is also JI-CLIP such as Firebug

0
source share

Scala has a REPL .

The Scala interpreter (often called REPL for Read-Evaluate-Print Loop) resides in an unusual design space - an interactive interpreter for a statically typed language spans two worlds that have historically been different. In version 2.8, REPL further uses unique features.

0
source share

Visual Basic.NET has an interactive mode.

0
source share
0
source share

Boo is a good intermediate between Python and C # - type-output and procedurally compatible programming with .Net compatibility, plus the ability to compile CLR and .EXE assemblies.

0
source share
  • one
  • 2

All Articles