• Artwork@lemmy.world
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    edit-2
    4 months ago

    By Jesse Hallett, 6th Apr 2026, 35 min read, Tags: TypeScript, type theory…
    Source [web-archive]

    Thank you very much!

    Though… 35 min read…? ~7000 words…? Type theory…? Is that the speed of mind of 2026…?

    • hallettj@leminal.spaceOP
      link
      fedilink
      English
      arrow-up
      3
      arrow-down
      1
      ·
      4 months ago

      It’s intended to acquaint one with the language, and there is a lot do that. I don’t know what is the right way to write this kind of stuff; but my thinking was if I were learning I’d rather start with this kind of piece before getting into a book.

  • SchwertImStein@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    2
    ·
    4 months ago

    Seems ok.

    I’ll post critique because it is easier:

    • atrocious code block font
    • some of non-code annotations are misaligned (on phone) e. g. nullable string
    • 5 is about Generics with emphasis on React. functions don’t “take two parameter lists”. Generic functions can have the type specified.
    • 6 is wrong. types cannot “be functions”. You can do some type algebra on types.