N3Cr0 to Programmer Humor@lemmy.ml • 22 days agocarrot.pylemmy.worldimagemessage-square96fedilinkarrow-up11.34Karrow-down111
arrow-up11.33Karrow-down1imagecarrot.pylemmy.worldN3Cr0 to Programmer Humor@lemmy.ml • 22 days agomessage-square96fedilink
minus-square@tetris11@lemmy.mllinkfedilink161•22 days 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-square@thisfro@slrpnk.netlinkfedilink74•22 days agoTo cast them, it uses libvegs however. It is not available in any standard package libraries, so just quickly build it from source
minus-squareNaibofTabrlinkfedilinkEnglish61•22 days 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-square@driving_crooner@lemmy.eco.brlinkfedilink43•22 days agoTomato keep being casted as fruit, even that for any practical purpose it should be as vegetable
minus-square@tetris11@lemmy.mllinkfedilink34•edit-222 days 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 IRLlinkfedilink6•22 days agoYeah but that’s all my replacement’s problem to deal with
minus-square@ThunderComplex@lemmy.todaylinkfedilink28•22 days agoUnfortunately, casting from potato to carrot is a narrowing conversion so your new carrot will lose some properties
minus-square@mindbleach@sh.itjust.workslinkfedilink9•22 days agoIf you forget the second step, well, that’s what sweet potatoes are.
Workaround: Potato peeler extends peeler, so just cast your carrots as potatoes before you peel them, and then cast them back to carrot afterwards
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
Unfortunately, casting from potato to carrot is a narrowing conversion so your new carrot will lose some properties
You say “potato” I say “caroto”
I hate that I understand this. Well done.
Internal screaming.
If you forget the second step, well, that’s what sweet potatoes are.