News for hackers. Stuff that matters.
Re:Notes on OpenAI's new o1 chain-of-thought models by neonsunset on Friday September 13, 2024 @09:27AM (#41531075)
> For example last night I was trying to do something with C# generics and it confidently told me I could use pattern matching on the type in a switch statwmnt, and threw out some convincing looking code.

Just use it on an instance instead

  var res = thing switch {
    OtherThing ot => …,
    int num => …,
    string s => …,
    _ => …
  };

There are no comments on this comment yet.