Skip to content

Commit

Permalink
add todo
Browse files Browse the repository at this point in the history
  • Loading branch information
noahehall committed Apr 17, 2023
1 parent 2a0e210 commit f3d0983
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

- this repo serves two purposes for programmers considering nim as their Nth language:
- [primary: source code](/src/bookofnim.nim) you can execute while reading
- generally concise examples of nims API interface
- generally concise examples of nims syntax
- [secondary: documentation](https://noahehall.github.io/nim/htmldocs/bookofnim.html) you can read while coding
- generally concise abbreviations extracted from nim docs/blogs/etc & categorized with links to technical specs
- thus each _chapter_ consists of docs to read and code to run:
Expand Down
4 changes: 3 additions & 1 deletion src/bookofnim/helloworld/modules/ifWhenCase.nim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ branching todos
---------------
- [likely](https://nim-lang.org/docs/system.html#likely.t%2Cbool)
- [unlikely](https://nim-lang.org/docs/system.html#unlikely.t%2Cbool)
- an example of using when (and if?) inside an object constructor
- there are examples in the doc where when is used to optionally define props
- e.g. this file: https://github.com/nim-lang/Nim/blob/devel/lib/std/private/threadtypes.nim
## when
- a compile time if statement
- the condition MUST be a constant expression
Expand Down

0 comments on commit f3d0983

Please sign in to comment.