REPL for dartlang

后端 未结 4 1769
独厮守ぢ
独厮守ぢ 2021-01-07 19:29

Is there a REPL for Dart to experiment with?

I tried inputing dart code in devtools in Dartium and that also didn\'t work.

So I couldn\'t find an easy way t

4条回答
  •  盖世英雄少女心
    2021-01-07 19:42

    There is an announcement about REPL for Dartium - see Nathanial's comment below. There are plans for Smalltalk like super-REPL. Here is what Gilad Bracha (member of the Dart team at Google) wrote on this subject in Is there a REPL or console for Dart:

    "I don't see this as a language question at all. It is a matter of tooling and reflective library support. With proper mirror builder APIs, building a REPL would be trivial. As it sands right now, it can be quite challenging. And of course, REPL is not the ultimate goal - there are more advanced interactive tools, like workspaces in Smalltalk/Self/Newspeak, where you not only evaluate things interactively at some top level, but can inspect the resulting objects, evaluate within the scope of an individual declaration or object etc. I am sure we will get there in time - and i much prefer sooner than later."

提交回复
热议问题