summary refs log tree commit diff stats
path: root/doc/tut2.rst
Commit message (Collapse)AuthorAgeFilesLines
* Add commas to docs for clarity (#18398)Elliot Waite2021-06-291-1/+1
|
* turn on syntax highlighting in Manual & Tutorial (#17692)Andrey Makarov2021-04-111-5/+6
| | | | | | | | | * turn on syntax highlighting in Manual & Tutorial * avoid highlighting of "method" * use relative path * 2 more changes
* RST backtick refactor (all *.rst except manual.rst and rst_examples.rst) ↵quantimnot2021-03-181-79/+81
| | | | | (#17258) Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
* promote std prefix in docs (#17128)flywind2021-02-201-4/+4
|
* remove all mentions of doc2, jsondoc2 (except 1 mentioning the alias) (#15683)Timothee Cour2020-11-261-1/+1
|
* Added [:T] syntax explanation to generics tutorial. (#15890)Aethylia2020-11-091-0/+13
| | | | | | | | | | | | | | | | | | | | | | * Added [:T] syntax explanation to generics tutorial. * Update doc/tut2.rst Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Update doc/tut2.rst Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> * Made second generics example runnable and added test line. * Update doc/tut2.rst * Update doc/tut2.rst * Update doc/tut2.rst Co-authored-by: flywind <43030857+xflywind@users.noreply.github.com> Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* Clarify the sense in which Nim supports recursive iterators in the (#15834)c-blake2020-11-041-2/+2
| | | manual, the tutorial, and the `tbintree` test.
* Remove bit about opening files not raising (#15654)Tomáš Hübelbauer2020-10-201-4/+2
| | | | | Resolved #473 I am removing this bit because this advice to not throw on recoverable-from cases like a file failing to open is actually not respected by Nim standard library. `readFile` and `readLines` both throw and exceptions must be used as a method of control flow for the recovery from that. There are alternatives, like opening a file handle instead of using these helpers, but that's less convenient than these helper methods for cases where you really want to just slurp up a file to memory and use a fallback value if it doesn't exist or is for whatever reason not readable.
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-4/+4
| | | | | | | | | | | | | | * Error -> Defect for defects The distinction between Error and Defect is subjective, context-dependent and somewhat arbitrary, so when looking at an exception, it's hard to guess what it is - this happens often when looking at a `raises` list _without_ opening the corresponding definition and digging through layers of inheritance. With the help of a little consistency in naming, it's at least possible to start disentangling the two error types and the standard lib can set a good example here.
* changed type() to typeof() in docs and error messages (#14084)hlaaftana2020-04-241-1/+1
|
* [ci skip] docs: make the syntax for generics easy to look up (#13754)Rory O’Kane2020-03-251-1/+2
|
* [skip ci] docs: reword Part 3 link to communicate that it exists (#13755)Rory O’Kane2020-03-251-1/+1
|
* [bugfix] Minor formatting fix in tut2 [ci skip] (#11501)Kaushal Modi2019-06-141-1/+1
| | | Monospace `untyped` like elsewhere in the tutorial.
* fixes #10912 (#11317)Andreas Rumpf2019-05-241-3/+3
| | | | | | * fixes #10912 * update the tutorial examples
* manual.rst: move experimental features to manual_experimentalAndreas Rumpf2019-03-271-15/+0
|
* multi-methods need to be explicitly enabled (#10856)Miran2019-03-181-0/+3
| | | | | | * multi-methods need to be explicitly enabled * update changelog, manual and tutorial
* introduce object before tuple in the tutorials (#10664)Arne Döring2019-02-141-16/+9
|
* added a new macro tutorial (#9588)Arne Döring2018-11-211-394/+8
|
* document the new `type[T]` and `static[T]` featuresZahary Karadjov2018-06-161-3/+3
|
* test the snippets in tut2.rstAraq2017-11-281-15/+37
|
* Documentation: directly use ref object + fields (#6598)Mamy Ratsimbazafy2017-11-151-10/+7
|
* fix #5918Zahary Karadjov2017-08-191-1/+1
|
* show splitWhitespace instead of split in tut2Araq2017-08-131-1/+1
|
* fixes #6125Andreas Rumpf2017-07-221-3/+3
|
* Fix for issue #6044. (#6056)Ganesh Viswanathan2017-07-061-1/+1
|
* Further tutorial updates (#5176)jlp7652017-01-071-15/+72
| | | | | | * tut1: added multiline comments * tut2: replaced expr/stmt with untyped/typed * added some more template/macro example * remove immediate pragma from example
* doc: tut2: simplify debug macro exampleSimon Ruderich2016-09-151-4/+5
|
* renamed most remaining .txt documentation files to .rstAraq2016-06-071-0/+1008