‹ BackHN Continuity

Thread

We Should Be Able to Change Our Languages

59 points · 36 comments · surprisetalk

  1. pie_flavor · · focus · HN ↗
    Rust has been a practical experiment in macros for ten years now. I think it is safe to say the results are in: macros are great, and you just needed to have a better style of macros. Making and using something like `tokio::select!` in C-style macros is miserable, but `tokio::select!` is easy to use and understand in Rust.
    1. udderidder · · focus · HN ↗

      [dead]

    2. xg15 · · focus · HN ↗
      Still learning Rust, but I found it unfortunate that basically the first command you're introduced to, println/print is a macro.

      It's starting with the exception before you even had a chance to understand the rule.

      1. kvemkon · · focus · HN ↗
        And one of the very first rules is:

        > by default, variables are immutable

        Well, since the name is a "variable", it must by default be mutable. Otherwise it is an exception being forced to become a standard case.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.