Sitemap
Dart

Dart is an approachable, portable, and productive language for high-quality apps on any platform. Learn more at https://dart.dev.

A Dart REPL PoC

6 min readJan 17, 2017

--

Good ol’ Python REPL

How can we create a REPL in dart?

has published an article about the vm_service_client package that provides a very nice API to interact with the VM service: http://news.dartlang.org/2016/05/unboxing-packages-vmserviceclient.html

Spikes are a concept from test-driven development: they are quick and dirty experiments one writes to figure out some technical questions.

Simple expressions: DONE
Custom imports: DONE

Supporting more Dart

() { if (a == 1) print('a is 1!!'); }();
Statements and expressions: DONE

More imports

Import any library from another package: DONE

What’s next?

pub global activate dart_repl
pub global run dart_repl
’s Unboxing Packages series for example: http://news.dartlang.org/2016/04/unboxing-packages-async-part-3.html et al. Low-level hacking in Dart is fun, and there are great libraries to get creative with. code_builder is looking very promising and built_collection is providing immutable collections. has also been publishing articles on immutable collections in Dart.

--

--

Dart
Dart

Published in Dart

Dart is an approachable, portable, and productive language for high-quality apps on any platform. Learn more at https://dart.dev.

Andreas Kirsch
Andreas Kirsch

Written by Andreas Kirsch

DPhil student at AIMS in Oxford; former RE at DeepMind, former SWE at Google; fellow at Newspeak House.

Responses (6)