REPL for dartlang [英] REPL for dartlang
问题描述
有没有一个REPL的Dart试验?
Is there a REPL for Dart to experiment with?
我试图在Dartium的devtools输入dart代码,也没有工作。
I tried inputing dart code in devtools in Dartium and that also didn't work.
所以我找不到一个简单的方法来使用dart中的各种API。
So I couldn't find an easy way to play with various APIs in dart.
推荐答案
虽然这不是一个REPL,但您可能会发现 Try Dart 在线工具很实用玩耍。它有点慢,因为它实际上是将Dart代码编译为JavaScript,以便在浏览器中工作。
Though it is not really a REPL, you may find the Try Dart online tool useful for playing around. It's a bit slow, since it is actually compiling the Dart code to JavaScript in order to have it work within the browser.
还有一个控制台,这可能更好,如果你正在寻找一个真正的REPL,但它需要一点设置。
There is also a console that someone built, which is probably better if you're looking for a real REPL, but it requires a bit of setup.
这篇关于REPL for dartlang的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!