Made with KolourPaint and screenshots from Kate (with the GitHub theme).

  • anton
    link
    fedilink
    arrow-up
    4
    ·
    4 months ago

    At least be fair and cut out the .into()

    • nebeker@programming.dev
      link
      fedilink
      English
      arrow-up
      3
      ·
      4 months ago

      And bow to the compiler’s whims? I think not!

      This shouldn’t compile, because .into needs the type from the left side and let needs the type from the right side.

      • Haradion@lemmy.ml
        link
        fedilink
        arrow-up
        2
        ·
        3 months ago

        If type constraints later in the function let the compiler infer the type, this syntax totally works.