Announcement

Collapse
No announcement yet.

Rust 1.21 Released With Minor Updates

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #21
    Originally posted by unixfan2001 View Post

    Can you please stop comparing it to Ruby or, at the very least, try to explain why exactly you think it looks like that?
    I (and, from the looks of it, quite a few others) just can't see it. The syntax has far more in common with Haskell and similar, functional languages.
    Implicit return statements.

    Comment


    • #22
      Originally posted by uid313 View Post

      Implicit return statements.
      Many modern languages support implicit returns from lambda functions. Rust was designed when lambdas became popular, so it's authors were able to offer short lambdas and solid syntax both. And also implicit return allowed to get rid of ternary operator.

      Comment


      • #23
        Originally posted by uid313 View Post

        Implicit return statements.
        This is pretty ridiculous. You're giving Ruby way too much credit. Lisp is second-oldest of the programming languages and it had implicit return statements. Well, it doesn't have statements, for that matter, but the idea is there. Such functionality has since 1958 existed in many higher level languages. Ruby did not invent anything.

        Comment

        Working...
        X