MaliciousKebab@sh.itjust.works to Programmer Humor@programming.devEnglish · edit-29 months agoWhat could go wrong trying to solve AoC in Rust?sh.itjust.worksimagemessage-square13fedilinkarrow-up167arrow-down17file-text
arrow-up160arrow-down1imageWhat could go wrong trying to solve AoC in Rust?sh.itjust.worksMaliciousKebab@sh.itjust.works to Programmer Humor@programming.devEnglish · edit-29 months agomessage-square13fedilinkfile-text
minus-squareAVincentInSpace@pawb.sociallinkfedilinkEnglisharrow-up1·edit-29 months agoPython style iterator comprehension (wonder if someone has made that into a macro. if no one has I will)
minus-squarecrispy_kilt@feddit.delinkfedilinkarrow-up1·9 months agoI don’t think it would be readable. Too much going on. You’d need an outer iter over lines, an inner over words, a check for number and a conversion. And there would be zero error handling.
Python style iterator comprehension
(wonder if someone has made that into a macro. if no one has I will)
I don’t think it would be readable. Too much going on. You’d need an outer iter over lines, an inner over words, a check for number and a conversion. And there would be zero error handling.