N3Cr0@lemmy.world to Programmer Humor · 3 hours agocarrot.pylemmy.worldimagemessage-square27fedilinkarrow-up1390arrow-down12
arrow-up1388arrow-down1imagecarrot.pylemmy.worldN3Cr0@lemmy.world to Programmer Humor · 3 hours agomessage-square27fedilink
minus-squaretetris11linkfedilinkarrow-up59·3 hours agoWorkaround: Potato peeler extends peeler, so just cast your carrots as potatoes before you peel them, and then cast them back to carrot afterwards
minus-squaremesamune@lemmy.worldlinkfedilinkEnglisharrow-up6·1 hour agoI hate that I understand this. Well done.
minus-squareThunderComplex@lemmy.todaylinkfedilinkarrow-up6·2 hours agoUnfortunately, casting from potato to carrot is a narrowing conversion so your new carrot will lose some properties
minus-squarethisfro@slrpnk.netlinkfedilinkarrow-up28·3 hours agoTo cast them, it uses libvegs however. It is not available in any standard package libraries, so just quickly build it from source
minus-squareNaibofTabr@infosec.publinkfedilinkEnglisharrow-up24·3 hours agoYeah but the current build of libvegs has some conflicts with libfruit, so if you need to use both you have to build libvegs in a different directory and then simlink it in /lib.
minus-squaredriving_crooner@lemmy.eco.brlinkfedilinkarrow-up12arrow-down1·3 hours agoTomato keep being casted as fruit, even that for any practical purpose it should be as vegetable
minus-squaretetris11linkfedilinkarrow-up4·edit-259 minutes agoThat’s it, let’s re-write the entire backend in C++ to make use of multiple inheritance to tackle this one use-case! What do you mean “this is overkill”? Do you have any idea how many tomatoes go into a fucking salad!?
minus-squareTiefling IRL@lemmy.blahaj.zonelinkfedilinkarrow-up4·2 hours agoYeah but that’s all my replacement’s problem to deal with
minus-squaretumblechinchilla@sh.itjust.workslinkfedilinkEnglisharrow-up8·2 hours agoInternal screaming.
Workaround: Potato peeler extends peeler, so just cast your carrots as potatoes before you peel them, and then cast them back to carrot afterwards
I hate that I understand this. Well done.
Unfortunately, casting from potato to carrot is a narrowing conversion so your new carrot will lose some properties
You say “potato” I say “caroto”
To cast them, it uses libvegs however. It is not available in any standard package libraries, so just quickly build it from source
Yeah but the current build of libvegs has some conflicts with libfruit, so if you need to use both you have to build libvegs in a different directory and then simlink it in /lib.
Tomato keep being casted as fruit, even that for any practical purpose it should be as vegetable
That’s it, let’s re-write the entire backend in C++ to make use of multiple inheritance to tackle this one use-case!
What do you mean “this is overkill”? Do you have any idea how many tomatoes go into a fucking salad!?
Someone should do it in rust now
Maybe cooking isn’t for me.
Yeah but that’s all my replacement’s problem to deal with
Internal screaming.