[–] 1 point 1 day ago

@glyph heh, I was just thinking that, yes coverage tool will complain about that. there's no way to test a line whose only purpose is to fail hard because it should not be reachable. options include annotating it for the coverage tester or.. ugh.. somehow injecting a test case to trigger it which..is ugly. yeah. sorry.this should be part of the language, I think. "unreachable_default:"

  • source
  • parent
  • context
  • [–] 1 point 1 day ago (2 children)

    @glyph um do what I consider best practice in any language and put a default with a throw in it for when future you adds a state but not a case? well that's what I always do anyway. 🤷‍♀️😺

  • source
  • [–] 1 point 1 day ago

    @georgetakei "blatant criminality", yeah, about that--somebody normalized walking the line of blatant criminality recently, can't recalll who exactly, so I'm afraid that accusation doesn't have much impact. 🤷‍♀️

  • source
  • [–] 1 point 3 days ago

    @georgetakei @jaykuo China is a big scary we use to justify political decisions involving large sums of money. Except when the narrative needs them to be our friends.The truth is they have just as good a PR department as we do, which is to say a very good one. Thank goodness we can trust everything that both PR departments tell us.

  • source
  • [–] 1 point 4 days ago

    @ProPublica "That left the federal government scrambling to figure out how to refund billions in duties it had collected"This may be one of the most obvious cases for "put it into social programs" I've ever seen. Even the most literal-minded fiscal conservative can see that refunding to the companies does not compensate the people harmed by this, or begin to repair the economic damage.

  • source