Skip to content

Instantly share code, notes, and snippets.

@ochafik
Created March 15, 2016 13:12
Show Gist options
  • Select an option

  • Save ochafik/0647c9b2806e106c2656 to your computer and use it in GitHub Desktop.

Select an option

Save ochafik/0647c9b2806e106c2656 to your computer and use it in GitHub Desktop.
null-inference
var from = 1, to = 10;
for (int i = from; i < to; i++) { ... }
let from = 1, to = 10;
for (let i = from; dart.notNull(i) < dart.notNull(to); i = dart.notNull(i) + 1) { ... }
let from = 1, to = 10;
for (int i = from; i < to; i++) { ... }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment