From f8b967b5f116255b3335f17d44f2d1521a72eb9b Mon Sep 17 00:00:00 2001 From: Micah Kendall Date: Sat, 26 Nov 2022 23:49:42 +1100 Subject: [PATCH] Todo explanation with example --- book/src/language-tour/todo.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/book/src/language-tour/todo.md b/book/src/language-tour/todo.md index 1f600ada..b2bc9207 100644 --- a/book/src/language-tour/todo.md +++ b/book/src/language-tour/todo.md @@ -1 +1,12 @@ # Todo + +A 'todo' type errors on evaluation but casts to any type. +It can be useful to let your project typecheck while you are still working on parts of it. + +``` +fn notImplementedYet(){ + todo +} +``` + +It is also good practice to use instead of a todo comment. \ No newline at end of file