Some problems trying to eliminate 'nil'

2021-07-08 Thread aleclarson
I'd expect a `{.noReturn.}` proc or `raise` statement within a `if foo == nil:` branch to work. Has this or will this be fixed?

[tables] ref object with "not nil" does not have default value

2021-06-19 Thread aleclarson
The following example does not compile. * How do I fix it? * Why isn't `data` initialized by default? {.experimental: "notnil".} type FooObj = object foo: int type Foo = ref FooObj not nil var tbl: Table[string, Foo] #^ The Table[system.

Nimble local dependency mode

2021-06-17 Thread aleclarson
I've tried that, but got: Error: Cannot develop packages that are binaries only. Run

Nimble local dependency mode

2021-06-16 Thread aleclarson
Trying to get local nimble dependencies working, but getting `cannot open file` for a dependency linked to `./nimbledeps/pkgs/name-0.0.0/`. This dependency does _not_ exist in `~/.nimble/pkgs` as it's a git clone. I ran `nimble install -l` to create the `./nimbledeps` folder before linking my l

Weak maps?

2021-06-15 Thread aleclarson
Is there anything like JavaScript's `WeakMap` class in Nim?