• cacheson@kbin.social
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    It seems like maybe there are some new features that weren’t in the previous release candidate? I don’t remember default values for objects being a thing. Maybe just me though?

    • I Cast Fist@programming.dev
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      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.