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...
```nim proc simple() = var x = "string here" echo locals() simple() ```
closes https://github.com/nim-lang/RFCs/issues/350 Again a bit sloppy, but should work. Can add experimental switch or whatever if desired.
…a control flow graph Todo: - [x] fix the bug "break" does not leave the loop that owns the variable in question. - [x] fix the bug which prevents `lastUse(obj.field)`...
```nim proc foo() = iterator it() {.closure.} = discard proc useIter() {.nimcall.} = var iii = it #
### Example ```nim type Percent = range[0.0 .. 1.0] # type Percent = float # using unlimited `float` works fine proc initColor*(alpha: Percent): bool = echo alpha const moduleInstanceStyle =...
### Summary Add arbitrary precision integers to standard library ### Solution Add the bigints library (it is in nimble) to standard library https://github.com/def-/nim-bigints
Followup to #20103. As an example, casting a `uint32` to a `uint64` (as is done in `compiler/int128.nim`), now produces the following message: ``` Warning: target type is larger than source...
fixes https://github.com/nim-lang/Nim/issues/20024 Added flags for enum fields and enum type when they are unsigned so their typedef will be unsigned. This fixes the range check issue when using a converter...
```nim import macros macro getClosureEnvType(iter: typed): untyped = # Returns type of closure iterator environment object # Here we expect the last argument of the iterator # to be the...
AsyncHttpClient not work with LibreSSL ### Example Just the official example of httpclient with https url ```nim import std/[asyncdispatch, httpclient] proc asyncProc(): Future[string] {.async.} = var client = newAsyncHttpClient() return...