Sjmarf@sh.itjust.works to Programmer Humor@programming.dev · edit-211 months ago“ARE YOU ALL SEEING THIS”sh.itjust.worksimagemessage-square42fedilinkarrow-up10arrow-down10
arrow-up10arrow-down1image“ARE YOU ALL SEEING THIS”sh.itjust.worksSjmarf@sh.itjust.works to Programmer Humor@programming.dev · edit-211 months agomessage-square42fedilink
minus-squareundetermined@lemmy.worldlinkfedilinkarrow-up0·11 months agoIt’s always funny naming a function which removes a child object from a parent object. I’ve stuck with “abandon child” so far.
minus-squarePoolloverNathan@programming.devlinkfedilinkarrow-up0·edit-211 months ago-- |Removes the given object from its current parent, if any, and then adds it as a child of the other given object. kidnap :: ChildBearing c p => p -- ^The kidnapper. -> c -- ^The child to kidnap. IO ()
minus-squareFooBarrington@lemmy.worldlinkfedilinkarrow-up0·11 months agoI like “orphanize” - one of those things that shouldn’t be a word, but is!
minus-squarePoolloverNathan@programming.devlinkfedilinkarrow-up0·edit-211 months agoimpl<'a, T: Child> ChildRef<'a, T> { fn orphanize<T: Child>(r: Self) -> Orphan<T>; }
It’s always funny naming a function which removes a child object from a parent object. I’ve stuck with “abandon child” so far.
I like “orphanize” - one of those things that shouldn’t be a word, but is!
umbilicalCord.cut()
def callCps()