News for hackers. Stuff that matters.
Re:Nim Apocrypha, Vol. I by masklinn on Wednesday December 23, 2020 @04:53AM (#25516084)
> The `with` syntax is new to me, but it looks useful for dealing with lots of subfields.

It's not syntax, but rather a third-party macro[0], which it should be noted is inspired by a rather horrible feature of the same name in javascript. Though I guess the devil would be in the details.

[0] https://github.com/zevv/with

Re:Nim Apocrypha, Vol. I by zevv on Wednesday December 23, 2020 @07:03AM (#25516697)
And I'm not even ashamed!
Re:Nim Apocrypha, Vol. I by elcritch on Wednesday December 23, 2020 @03:48PM (#25522045)
Thanks @masklin for pointing that out -- sloppy language on my side, but I also didn't realize it was a third party library. Thanks @zevv for the macro!
Re:Nim Apocrypha, Vol. I by akavel on Wednesday December 23, 2020 @12:26PM (#25519859)
There's also stdlib's with (https://nim-lang.org/docs/with.html), though for some reasons I'm not aware of it doesn't seem listed in the stdlib's ToC :/