this post was submitted on 02 Aug 2023
29 points (100.0% liked)

Nim Programming Language

214 readers
7 users here now

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] ICastFist@programming.dev 4 points 1 year ago (1 children)

That is a new and welcome change, in my opinion. I have a bit of experience with Nim and when you defined a type (object), you couldn't define default values. The workaround was making or overloading a new() function with default values instead.

[โ€“] cacheson@kbin.social 2 points 1 year ago

Oh, yeah, don't get me wrong, I like the change. I just figured the difference between a release candidate and the actual release would just be bug fixes and such.