Proposed table changes - get and getOrDefault

2021-08-04 Thread cblake
@Varriount \- it's just a matter of what you want to be consistent with. `mapIt`, `filterIt`, and `sortedByIt` seem _really_ popular and `filterIt` at least goes back to 2011. This may be a naming convention too old to change, realistically. `withItem`/`item` (choosing consistency with iterator

Why generic converter doesn't work?

2021-08-04 Thread demotomohiro
Nim can inferences generic type from arguments, but cannot inference return type. import strutils type Direction = enum top, right, bottom, left proc to_enum[T: enum](s: string): T = parse_enum[T](s) # Compile Error: cannot instantiate: 'T' # let d: Dir

Nim enters top 50 programming languages list on TIOBE Index!

2021-08-04 Thread dom96
Wow. Thanks for posting about this. This is amazing. I actually thought they use just Google for their rankings, but it seems they use far more now. Their methodology is explained here: . If anyone has the will and time, would

Why generic converter doesn't work?

2021-08-04 Thread xigoi
There is no way for this converter to know what type you want to convert to.

Why generic converter doesn't work?

2021-08-04 Thread alexeypetrushin
Why generic convertor doesn't work? [play](https://play.nim-lang.org/#ix=3v18) Nim import strutils type Direction = enum top, right, bottom, left converter to_enum[T: enum]*(s: string): T = parse_enum[T](s) # converter to_enum*(s: string): Direction = parse

Proposed table changes - get and getOrDefault

2021-08-04 Thread Varriount
Personally, I don't mind the _mechanic_ behind `it`, however I do dislike the name `it` \- I'd much rather use `this` (or `expr`, if `expr` wasn't already used as a deprecated type name).

Requests library

2021-08-04 Thread treeform
There is also:

Nim enters top 50 programming languages list on TIOBE Index!

2021-08-04 Thread xigoi
The TIOBE index is complete garbage. The ratings don't match real-world usage at all.

Nim enters top 50 programming languages list on TIOBE Index!

2021-08-04 Thread mrhdias
it is possible that it is related to this [post](https://forum.nim-lang.org/t/8274)?

Nim enters top 50 programming languages list on TIOBE Index!

2021-08-04 Thread mratsim
And Typescript is #49? But why?

Nim enters top 50 programming languages list on TIOBE Index!

2021-08-04 Thread mrhdias
For the very first time, Nim has made it to top 50. Congratulations! Position: 46 Ratings: 0.22% /

Mac GUI

2021-08-04 Thread georgelemon
Great library! I'm also interested playing with WKWebView, JSBridge and other Web/Webkit related APIs for wrapping advanced web apps with custom UIs <3

Nim earns mention in the news (unfortunately?)

2021-08-04 Thread cdunn2001
The idea that they code in specific languages to avoid detection is absurd. The malware is in the binary. These are really good coders, and they are adopting agile languages because they are agile. Nim is particularly agile, and still low-level. I'd say this is a sign that Nim is about to explo