Todo explanation with example
This commit is contained in:
		
							parent
							
								
									3fab7cde69
								
							
						
					
					
						commit
						f8b967b5f1
					
				| 
						 | 
				
			
			@ -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.
 | 
			
		||||
		Loading…
	
		Reference in New Issue