• TehPers@beehaw.org
    link
    fedilink
    English
    arrow-up
    4
    ·
    7 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
      ·
      7 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.