codeinabox@programming.dev to Rust@programming.devEnglish · 10 hours agoArguing about argumentssteveklabnik.comexternal-linkmessage-square15linkfedilinkarrow-up120
arrow-up120external-linkArguing about argumentssteveklabnik.comcodeinabox@programming.dev to Rust@programming.devEnglish · 10 hours agomessage-square15linkfedilink
minus-squareesa@discuss.tchncs.delinkfedilinkarrow-up1·edit-25 hours agoYeah, though in those cases you might get an extra question about why rect is a function and not a method, e.g. Rect { w: 30, h: 20, .. RectArgs::default() }.do_the_thing()
minus-squareanton@lemmy.blahaj.zonelinkfedilinkarrow-up1·6 hours agoI assumed the rect is a method on something like a graphics context or physics engine, but yeah.
minus-squareesa@discuss.tchncs.delinkfedilinkarrow-up1·5 hours agoYeah, decent assumption, I’ll tone down my comment a bit.
Yeah, though in those cases you might get an extra question about why
rectis a function and not a method, e.g.Rect { w: 30, h: 20, .. RectArgs::default() }.do_the_thing()I assumed the rect is a method on something like a graphics context or physics engine, but yeah.
Yeah, decent assumption, I’ll tone down my comment a bit.