Syntax Lookup

Enter some language construct you want to know more about.
This is the todo extension point.

Since 11.1

%todo is used to tell the compiler that some code still needs to be implemented.

ReScriptJS Output
let implementMeLater = (): string => %todo("This should return a string eventually.")

let x = implementMeLater()

Console.log(x->String.includes("x"))

It can also be used without a text message:

RES
let implementMeLater = (): string => %todo

This will crash when executed. We suggest to promote the warning to an error when building for production.

References