Jaremy Creechley
e039d6a23f
try repr
2023-07-28 01:51:20 -07:00
Jaremy Creechley
50feb1f25b
try strVal
2023-07-28 01:45:28 -07:00
Jaremy Creechley
ced675233b
don't assert
2023-07-28 00:52:47 -07:00
Jaremy Creechley
388797861d
add kind check
2023-07-27 20:08:33 -07:00
Jaremy Creechley
a7a7e99a2e
add inline ?! type and documentation tweaks
2023-07-26 16:53:25 -07:00
Mark Spanbroek
b3cf35ac45
version 0.10.10
0.10.10
2023-07-03 11:17:51 +02:00
Mark Spanbroek
3bce3088a7
Use root configuration when running tests
2023-07-03 11:16:56 +02:00
Mark Spanbroek
ffe0faa3bb
Only enable --styleCheck:usages on Nim versions that support it
2023-07-03 11:16:56 +02:00
Mark Spanbroek
0d7ce8efde
Provide conversion to string $ for Results
2023-06-26 10:04:02 +02:00
Mark Spanbroek
58c10fb333
version 0.10.9
0.10.9
2023-06-26 10:02:25 +02:00
Mark Spanbroek
8daae27089
Do not edit AST nodes, make a copy first
...
Fixes error "typechecked nodes may not be modified"
2023-06-26 09:59:14 +02:00
Mark Spanbroek
b18444a6d0
Support renamed 'results' library
2023-06-05 17:26:46 +02:00
Mark Spanbroek
f957dd59d6
Fix tests on Nim 1.6.12
...
Ignore the nimble.lock at the root level when running tests
2023-06-05 17:26:46 +02:00
Mark Spanbroek
6cbbda7e4d
version 0.10.8
0.10.8
2023-02-14 09:31:58 +01:00
Eric Mastro
096ca864b0
tuple binding and unpacking support ( #29 )
...
* tuple binding and unpacking support
* support tuple binding in nim < 1.6
* Use ? instead of Option[] in tests
* Test binding of optional tuple, not just tuple
* Add tests for tuple unpacking of Result
* Remove unused import
* Rearrange tuple binding code
Introduce separate proc for creation of unpacking
statement.
Use `quote do` to make code as similar as possible
to the `bindLet` and `bindVar` templates.
* Add tests for failed tuple bindings
---------
Co-authored-by: Mark Spanbroek <mark@spanbroek.net>
2023-02-14 09:56:32 +11:00
Mark Spanbroek
1dcef4b302
version 0.10.7
0.10.7
2022-10-20 12:13:43 +02:00
Mark Spanbroek
f78bdd9d58
Fix redefinition of 'T`gensymXX' error
...
In rare instances, the Nim compiler will generate the same
symbol more than once. Adding a block works around this issue.
Reproducing this behavior in a unit test has proved elusive.
2022-10-20 05:10:44 -05:00
Mark Spanbroek
30e4184a99
version 0.10.6
0.10.6
2022-09-28 11:37:36 +02:00
Mark Spanbroek
4d631b1ba9
Fix: ensure that options and results are only evaluated once
2022-09-28 11:36:28 +02:00
Mark Spanbroek
82408a5ca2
version 0.10.5
0.10.5
2022-08-10 13:39:00 +02:00
Mark Spanbroek
cbdd882b9f
Fix: unused variable
2022-08-10 13:35:47 +02:00
Mark Spanbroek
9e3a822877
Fix: disregard early symbol lookup for error variable
2022-08-10 13:35:47 +02:00
Mark Spanbroek
cfe17ca899
Fix error when using an existing name as error variable
2022-08-10 13:35:47 +02:00
Mark Spanbroek
90ea780ba9
Fix: nested without calls in generic code
2022-08-10 13:29:09 +02:00
Mark Spanbroek
4abeef5c36
Fix: without statement with error works in nested calls
2022-08-10 13:29:09 +02:00
Mark Spanbroek
22f2c9761a
Disable warning about DotLikeOps
...
Give a clear compiler error when questionable
is used with the -d:nimPreviewDotLikeOps flag.
Reason: the option is likely to be deprecated
or removed. More info:
https://github.com/nim-lang/Nim/pull/19919
2022-08-10 13:28:52 +02:00
Mark Spanbroek
13c7ff7671
Retrieve optional error from Result
2022-08-04 13:52:07 +02:00
Tanguy
b0666ba4f1
Fixes for styleCheck:usages ( #16 )
...
* Fixes for styleCheck:usages
* Bump nim 1.2 in CI
2022-08-03 15:21:00 +02:00
Ivan Yonchovski
955597a4fd
Add setup/lock files ( #14 )
2022-07-12 21:34:52 +03:00
Mark Spanbroek
0f9b12abc6
version 0.10.4
0.10.4
2022-07-04 09:59:59 +02:00
Mark Spanbroek
d9333a8f03
Remove obsolete ASDF tool version
2022-07-04 09:56:56 +02:00
Mark Spanbroek
0895a9c065
Fix: without statement with error works in generic code
2022-07-04 09:53:02 +02:00
Mark Spanbroek
d7e9f0bf7f
Version 0.10.3
0.10.3
2022-04-04 09:56:53 +02:00
Nickolay Bukreyev
361948499b
Fix deprecation warning when importing errorban inside the library
...
`errorban` module [has been deprecated][deprecation] since v0.5.0.
The library continued to use it internally, but because of that, it
was triggering its own deprecation warning. This commit splits
`errorban.nim` into two pieces: the warning and actual code.
[deprecation]: https://github.com/status-im/questionable/commit/e66cd2439b
2022-04-04 09:52:01 +02:00
Mark Spanbroek
6018fd43e0
version 0.10.2
0.10.2
2022-01-12 17:57:03 +01:00
Mark Spanbroek
a748d22350
Fix: ensure that overridden =? operator does not remain in scope
2022-01-12 17:54:24 +01:00
Mark Spanbroek
ef29000f94
Without statement for Results provides access to errors
2022-01-12 17:54:24 +01:00
Mark Spanbroek
91a38040ea
Add license
2022-01-10 11:04:48 +01:00
Mark Spanbroek
7b209af6fb
version 0.10.1
2021-12-04 17:56:14 +01:00
Mark Spanbroek
92641b552d
Switch warningAsError only works for Nim >= 1.4.0
2021-12-04 17:56:14 +01:00
Mark Spanbroek
cfe4c6fc95
Ensure that =? works with types that do not have a default value
2021-12-04 17:26:08 +01:00
Mark Spanbroek
d7a757a8cb
Switch to Nim 1.6.0 for development
2021-11-01 17:18:49 +01:00
Mark Spanbroek
0fe40d2347
Run CI on Nim 1.2, 1.4 and 1.6
2021-11-01 17:18:35 +01:00
Mark Spanbroek
56a4bca641
Fix typo
2021-08-30 18:13:43 +02:00
Mark Spanbroek
4967084d22
Better errors when using a proc without a return type in a .? chain
2021-08-30 15:58:29 +02:00
Mark Spanbroek
b9a090d001
Ensure that test modules use local nimbledeps folder
...
Even when NIMBLE_DIR is set externally.
2021-07-12 11:26:35 +02:00
Mark Spanbroek
8feb684574
Fix "unused variable" warnings
2021-07-07 09:19:44 +02:00
Mark Spanbroek
4a1783c472
Add documentation comments
2021-06-04 17:34:48 +02:00
Mark Spanbroek
a2ded4f01a
Simplify
2021-06-04 16:38:44 +02:00
Mark Spanbroek
986716511f
version 0.10.0
0.10.0
2021-05-31 16:26:06 +02:00