unquietwiki@programming.dev to Nim Programming Language@programming.devEnglish · 2 years agoNim v2.0 releasednim-lang.orgexternal-linkmessage-square11fedilinkarrow-up16arrow-down10cross-posted to: programming@beehaw.orgprogramming@programming.devhackernews@derp.footechnews@radiation.party
arrow-up16arrow-down1external-linkNim v2.0 releasednim-lang.orgunquietwiki@programming.dev to Nim Programming Language@programming.devEnglish · 2 years agomessage-square11fedilinkcross-posted to: programming@beehaw.orgprogramming@programming.devhackernews@derp.footechnews@radiation.party
minus-squareI Cast Fist@programming.devlinkfedilinkarrow-up2·2 years agoThat 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.
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.