fusion/matching case statement behavior

2024-02-09 Thread ElegantBeef
> So nim doesn't know that the Some(_) and None() branches form an exhaustive > check of Option values? Well it's cause the macro expands the case statement into if elif branches this can be seen in the following. # compile with --expandMacro: case {.experimental: "caseStmtMacr

fusion/matching case statement behavior

2024-02-09 Thread Horkarod
I'm new to nim. I use the Option type in other languages and was playing around with them in nim (version 2.0.2): {.experimental: "caseStmtMacros".} import fusion/matching let a = case some(0) of Some(_): 1 else: 2 echo a let b =

Error while trying to do a https request

2024-02-09 Thread palaso
Hello, i'm trying to make an http request but i have the error Error: unhandled exception: error:0A00018A:SSL routines::dh key too small [SslError] i read in stackoverflow that is a problem with the certificate of the server. I tried in another programming language and i could make the request s

`nph` opinionated formatter v0.4

2024-02-09 Thread morturo
"don't-waste-a-line", but... let x = somevariable .function0(32) .function1(42) Run and not let x = somevariable .function0(32) .function1(42) Run

`nph` opinionated formatter v0.4

2024-02-09 Thread arnetheduck
[0.4.1](https://github.com/arnetheduck/nph/releases/tag/v0.4.1) out to fix a small comment-eating bug

Tooling update: new version of the nimlangserver and the vscode extension

2024-02-09 Thread gcao
I upgraded to Nim 2.0.2 and added the files to "nim.project" in $PROJECT/.vscode/settings.json and now it works. And it includes multiple symbols for procs with same name and different signature. This is a big improvement over the other extension I used before. Thank you so much. I'll probably

Dr Oz CBD Gummies For Blood Sugar

2024-02-09 Thread KennetGolder
Official Facebook Page:-