summary refs log tree commit diff stats
path: root/lib/std/wrapnils.nim
Commit message (Collapse)AuthorAgeFilesLines
* An unnamed break in a block now gives an `UnnamedBreak` warning (#20901)ringabout2022-11-241-9/+11
| | | | | | | | | | | | | | | | | | | | | * unnamed break in the block now gives an error * bootstrap * fixes * more fixes * break with label * label again * one moee * Delete test5.txt * it now gives a UnnamedBreak warning * change the URL of bump back to the original one
* major improvements to `std/wrapnils`: optimal codegen, case objects, lvalue ↵Timothee Cour2021-07-071-51/+134
| | | | | | | semantics (#18435) * wrapnils now generates optimal code; also handles case objects * changelog * unsafeAddr => addr
* avoid re-exporting options from std/wrapnils (#18222)Timothee Cour2021-06-101-1/+1
|
* CIs: attempt to use csources_v1 (#16282)Andreas Rumpf2021-04-211-2/+2
| | | | | | | | * CIs: attempt to use csources_v1 * also updated the BSDs * also updated azure pipelines * std modules should not itself use the 'std/' import dir... * compiler has to be careful with std/ for v1 booting
* clean up wrapnilsflywind2021-02-251-1/+0
|
* refs #17114: workaround for arm64 which should segfault but does not (#17178)Timothee Cour2021-02-251-1/+0
| | | | | | | * refs #17114: workaround for arm64 which should segfault but does not * fixup * Update lib/std/wrapnils.nim Co-authored-by: Andreas Rumpf <rumpf_a@web.de>
* wrapnils: add `??.` which returns an `Option` (#16931)Timothee Cour2021-02-241-50/+49
| | | | | | | * wrapnils: add option-like API with ??., isSome, get * fix test after rebase * cleanups * fix changelog * address comments regarding get vs unsafeGet
* std/wrapnils does not use experimental:dotOperators anymore (#16996)Timothee Cour2021-02-101-12/+9
|
* use typeof instead type (#16962)flywind2021-02-081-4/+4
|
* clarify docs for wrapnils (#16929)Timothee Cour2021-02-041-2/+7
| | | Co-authored-by: Dominik Picheta <dominikpicheta@googlemail.com>
* Error -> Defect for defects (#13908)Jacek Sieka2020-04-281-1/+1
| | | | | | | | | | | | | | * 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.
* maybe: allows optional chaining of field access and indexing when LHS i snil ↵Timothee Cour2020-01-181-0/+109
(#13023) * maybe: allows optional chaining * fix tools/kochdocs.nim * improve semantics to distinguish valid from invalid values * for now, wrapnil, isValid, unwrap are not exported