JPDev@programming.dev to Programmer Humor@programming.dev · 2 years agoThe Perfect Solutionprogramming.devimagemessage-square55fedilinkarrow-up1568arrow-down17
arrow-up1561arrow-down1imageThe Perfect Solutionprogramming.devJPDev@programming.dev to Programmer Humor@programming.dev · 2 years agomessage-square55fedilink
minus-squareDragnmn@lemm.eelinkfedilinkarrow-up11·2 years agoIt allows you to add internal linebreaks.
minus-squareenkers@sh.itjust.workslinkfedilinkarrow-up7·edit-22 years agoDownside is that it includes your indentation whitespace, though I doubt chatgpt would care about that, as I’d imagine it gets discarded when it’s tokenized, but it’s still good to keep in mind when using " " ".
minus-squareenkers@sh.itjust.workslinkfedilinkarrow-up1·edit-22 years agoThat’s a pretty clean looking solution. There are a few others as well, but yours seems better, and it’s in the standard lib to boot!
It allows you to add internal linebreaks.
Downside is that it includes your indentation whitespace, though I doubt chatgpt would care about that, as I’d imagine it gets discarded when it’s tokenized, but it’s still good to keep in mind when using " " ".
dedent() can help with that.
That’s a pretty clean looking solution. There are a few others as well, but yours seems better, and it’s in the standard lib to boot!