News for hackers. Stuff that matters.
Re:Clear is better than clever [pdf] by Roboprog on Monday May 06, 2019 @07:01PM (#19844797)
You assigned “myVar” in every branch, right? Let me reread that again to make sure you really are assigning myVar in every case.

That’s a problem. One I’ve seen all too often, but a problem, nonetheless.

Re:Clear is better than clever [pdf] by tabtab on Wednesday May 08, 2019 @08:58PM (#19864405)
As I mention above, it "degenerates" better in that if more code is needed in each sub-block, it's easy to add. I'm okay with syntax that could factor such out if it doesn't require overhauling the block when the starting simple pattern goes away over time. As they say, the wrong abstraction is often worse than no abstraction. Change can kick the simple pattern away.