cross-posted from: https://lemmy.blahaj.zone/post/31679150

proportional reaction

you are viewing a single comment's thread
view the rest of the comments
[–] 6 points 11 months ago* (1 child)

I've been called slurs before for using immediately invoked anonymous function expressions with switch cases in JS

const [val1, val2] = (() => {
  switch(whatever) {
    case "foo": return [1, 2];
    case "bar": return [3, 4];
    default: return [0, 0];
  }
}))();
  • source
  • parent
  • hideshow 2 child comments