3. What’s Cool About Dart
• Dart is open source
• Dart is easy to learn
• Dart compiles to JavaScript
• Dart runs in the client and on the server
• Dart comes with a lightweight editor
4. Dart Features
• Class-based inheritance with interfaces
• Optional static types
• Real lexical scoping
• Libraries
• Isolates
5. A Basic Dart Program
// Define a function.
printNumber(num aNumber)
{
print('The number is $aNumber.'); // Print to the console.
}
// This is where the app starts executing.
main()
{
var number = 42; // Declare and initialize a variable.
printNumber(number); // Call a function.
}
7. The Team Behind Dart
Lars Bak
> Beta Language
> HotSpot Java VM
> V8 Javascript VM in Google Chrome
> 18 Software patents
Gilad Bracha
> Java Language Specification
> Java Virtual Machine Specification