A great read for folks wondering why Java uses type erasure instead of “reified” generics. For the unaware, that means that a List<Integer> is a List<Object> at runtime. I had always wondered about it and why they didn’t take the alternative route. For context, C# does have reified types so the actual type parameter is available at runtime.

I personally love reading in depth discussions about counter intuitive engineering decisions like this.

  • JackbyDevOPM
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    As a heads up, idk if it is just the Jerboa app or Lemmy but I your type params on Sensor were being interpreted as HTML tags and not rendered. The ones in the first paragraph are fine though.

    Can we use <b>raw HTML?</b>

    Edit: looks like it just gets blocked and not read.

    Edit 2: Looks like Jerboa and the browser display this differently actually lol

    • Knusper@feddit.de
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Funnily enough, I typed that one in the Jerboa app, but yeah, it’s not rendering for me either. 🙃

      • JackbyDevOPM
        link
        fedilink
        arrow-up
        2
        ·
        1 year ago

        I opened a GitHub issue. I think it’s probably just a config thing as they are both based on the CommonMark spec. Or maybe a nug with one of the markdown libs themselves.