imba / imba.io

📄The official website of Imba
http://imba.io
MIT License
80 stars 37 forks source link

Documentation samples should actually compile without errors #176

Closed eulores closed 2 years ago

eulores commented 3 years ago

Basic Syntax / Methods

def method name = 'imba'
    console.log param

should be

def method name = 'imba'
    console.log name

Basic Syntax / Class Declarations

let todo = new Todo 'Read introduction'

should be

let todo = new Todo title: 'Read introduction'

otherwise the constructor would not take Read introduction to initialize title.


Basic Syntax / Loops & Iteration

for num in array when num != 2
    num

array is undefined


Basic Syntax / Components

imba.mount <todo-app data=todos>

todos is undefined

familyfriendlymikey commented 2 years ago

These appear to have been fixed, thank you!