• azdle@news.idlestate.orgOP
      link
      fedilink
      arrow-up
      4
      ·
      1 day ago

      I’m curious, have you used Rust much? Most of those changes just feel like “rust should be more familiar to me” changes.

      Also:

      As Rust 2.0 is not going to happen, Rust users will never get these language design fixes

      Isn’t necessarily true for most of your suggestions. Since most of them are just changes to syntax semantics and not language semantics they could be made in an edition.

    • TehPers@beehaw.org
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      Interesting perspective. Not sure I agree with most of the suggestions though.

      Some of the earlier ones remind me of C#'s records. Were they inspired from them?

      Some of the later ones just feel like Go to me.

      I like the idea of dropping syntax for ranges. It does feel like the syntax just leads to confusion.

      Named parameters are problematic because of parameter names becoming significant to the API. See Python’s * and / in parameter lists (like def foo(a, *, b) for example).

      • soc@programming.dev
        link
        fedilink
        English
        arrow-up
        2
        arrow-down
        1
        ·
        2 days ago

        Some of the earlier ones remind me of C#'s records. Were they inspired from them?

        No, that stuff is much much older.

        Named parameters are problematic because of parameter names becoming significant to the API. See Python’s * and / in parameter lists (like def foo(a, *, b) for example).

        I think the name problem is overblown, you can always have an annotation to facilitate name changes.