Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any up-to-date interactive server-side interpreter/console for dart [closed]

Having done a number of projects in python and node.js, I am missing an interactive interpreter/console in dart that those languages, as well as other like ruby, provide so nicely.

Tests, logging, debuggers, profilers are the instruments we use in application development while digging into issues or trying things out. But in scripting, in server side scripting, it is the interpreter that is the primary tool to try things out. Having experience from both, software development with a long list of languages and a number of scripting domains (python and bash for admin functions, node for http request evaluation, R for data analysis etc.), I fail to see how, if server side scripting is to be taken seriously, any language not providing an interpreter/console can hope for any sensible share of the pie.

Is dart not intended for scripting or am I just missing something obvious?

PS. There is (was) one project addressing the issue, but it did not see any development for the past 3 years: https://github.com/sam-mccall/dart-console

like image 866
Oleg Sklyar Avatar asked Oct 21 '25 03:10

Oleg Sklyar


2 Answers

As far as I know the REPL for the Dart language was not originally planned by the development team. The discussion on the REPL took place back in 2012 with no real outcome:

Github: Dart needs a REPL

So the answer is, there exists no interactive interpreter/console for Dart and it does not look like there are any plans to create one.

Observaory, Dartium, and WebStorm debugger allow to interactively execute Dart code.

  • REPL for dartlang
  • Is there anyway to invoke a Dart REPL on a website, when using Dartium?
  • Is there an "Immediate Window" in the Dart Editor / Debugger?
like image 24
Günter Zöchbauer Avatar answered Oct 25 '25 21:10

Günter Zöchbauer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!