• 8 Posts
  • 41 Comments
Joined 2 年前
cake
Cake day: 2023年8月29日

help-circle

  • soc@programming.devtoRust@programming.devthings rust shipped without (2015)
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    12 小时前

    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.









  • I think it’s due to multiple reasons, and the threshold of rejecting the course of GitHub/Microsoft/the USA seems to have reached a level where GitHub stopped being the “default” place to be for a number of projects already.

    And if you are at a point were you need a Codeberg account anyway already, why not move your own projects there (or use it for new ones)?

    Not to mention, the Forgejo project is at a stage were it feels like your bug report/feature request/contribution has an actual impact.




  • soc@programming.devOPtoProgramming Languages@programming.devZig's Lovely Syntax
    link
    fedilink
    English
    arrow-up
    5
    arrow-down
    1
    ·
    edit-2
    23 天前

    To be honest, this is an interesting article from a language comparison perspective, but this really weird breathless fawning over syntactic decisions (that may, at best, be slightly better than Rust) is insufferable.

    If one added all the weird stuff Zig (or “Tig” as I call it due to the endless shilling of that one database company that seems to be the sole user of the language), it simply evens out:

    Neither Rust nor Zig are particularly “beautiful” or in the top spots when it comes to good, clean, minimal syntax design.

    It’s just … weird?

    Thinking Zig has “lovely syntax” compared to Rust, feels like someone saying that Go has “great semicolon inference” based on only knowing JavaScript.