Nim
Nim copied to clipboard
Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, an...
- the compiler keeps bootstrapping with `-d:nimPreviewSlimSystem` - the `std/dollars` uses new float algorithm when `-d:nimPreviewSlimSystem` is enabled, otherwise you can still switch them on/off by `nimPreviewFloatRoundtrip`
`text*` proc cannot be used with an xnElement type. `elemText*` is intended to fill that gap. This proc gets the associated text for an element node `n`. Finds all the...
### What happened? `echo repr(nil)` works with arc and orc, but not refc. refc output: ``` Error: internal error: genTypeInfoV1(tyNil) No stack traceback available To create a stacktrace, rerun compilation...
### What happened? I'm trying to have a template evaluate to a specific iterator under varying circumstances. While the direct expression that I want (e.g. `A().fieldPairs`) works when entered, it...
* `mapItLit` is error prone and not flexible enough, see https://github.com/nim-lang/Nim/pull/18577#issuecomment-886231715 * `mapIt` returns a seq so isn't appropriate in cases where you want to return an array|set|etc This PR...
refs https://github.com/nim-lang/RFCs/issues/276 see tests tests/misc/trfc_276.nim ## for `static:` this PR should fix existing issues * fix https://github.com/nim-lang/Nim/issues/10938 * fix https://github.com/nim-lang/Nim/issues/13312 * fix https://github.com/nim-lang/Nim/issues/13887 ## for `const:` this PR should improve...
This PR improves and generalizes (and in fact subsumes) `patchFile` as follows: * `--moduleoverride` can be used in cmdline (and therefore, in user config too) * it uses the canonical...
### Summary Remove dead code from the JS output. ### Description ```nim import std/dom document.getElementById("foo").value = "bar" ``` expected: ```js document.getElementById("foo").value = "bar"; ``` got: 720 lines of JS tried...
Hello world fails with this error: `The application was unable to start correctly (0xc000007b). Click OK to close the application` building with `nim r --threads:on hello.nim` without --threads:on it works...
inspired by https://github.com/nim-lang/Nim/pull/12378 default fields for object - [x] result - [x] object variant the addition compared to https://github.com/nim-lang/Nim/pull/12378 - [x] var - [x] omit type for default fields -...