News for hackers. Stuff that matters.
Re:Coconut: Simple, elegant, Pythonic functional programming by mcdonje on Thursday November 04, 2021 @09:31AM (#29106934)
ok, now do the same check in procedural code like the comment you responded to did.
Re:Coconut: Simple, elegant, Pythonic functional programming by hobs on Thursday November 04, 2021 @09:36AM (#29106980)
Ad absurdum - what do you think is easier to memorize - a story (eg The Iliad) or an equivalently explanatory regular expression?
Re:Coconut: Simple, elegant, Pythonic functional programming by mcdonje on Thursday November 04, 2021 @12:33PM (#29109246)
Just trying to get an apples to apples comparison. He's using a relatively involved problem to say regex is difficult to parse. But the alternatives are libraries that hide the complexity, or large code blocks if you're rolling your own.