☁️
DreamTode
  • Introduction
  • Types
  • Primitives
  • Arrays
  • Assignments
  • Objects
  • Parameters
  • Functions
  • Declarations
  • Templates
  • Instances
  • Custom Types
  • Dynamic Arrays
  • Ownership
  • It
  • Examples
Powered by GitBook
On this page
  • What's the big idea?
  • What does it look like?

Was this helpful?

Introduction

NextTypes

Last updated 3 years ago

Was this helpful?

DreamTode is a language that targets WebAssembly. It doesn't exist yet! I'm still planning it! :)

What's the big idea?

DreamTode is how I would like to write my code. It's my pipedream! It's not supposed to be used by anyone else, but you can if you want.

To understand DreamTode, I recommend reading through the pages of this book in order.

What does it look like?

Here are some examples just to give you an idea of what DreamTode looks like. Don't worry about understanding everything yet.

print "Hello world!"
let greet = [name] => print "Hello {name}!"
greet "world" //Hello world!
let age = 28
let add = [a, b] => a + b
print add(3, 2)  //5
print age:add(1) //29
for (10 to 0) [n] -> {
    print n
}
print "Lift-off!"