Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Todo

action foo(type enum Bar) {
    let x = if type == Bar::Done {
        1
    } else {
        todo()
    }
}

todo() simply exits with a runtime error. It is intended to be used during development to stub out things you haven’t finished. It can only be compiled in debug mode. It produces a compile error otherwise.