News for hackers. Stuff that matters.
Re:The Claro Programming Language by lolinder on Thursday February 29, 2024 @05:55AM (#39548022)
A missing REPL in Rust is actually a great example of why languages ignore (some) ideas that other languages have.

A programming language is defined as much by what it chooses not to include as by what it chooses to include. Functional languages choose to not include mutation and statements, but we don't complain about them "ignoring" those features, it's a very intentional decision to drop them. Golang looked at exceptions and decided to not include them. Not every language should have every feature, both from a practical perspective (how would you maintain such a language?) and an ergonomic one (how would you work in such a language?).

Rust's lack of a REPL wasn't just them ignoring an important innovation, it was them choosing to not implement a feature that they know their primary audience won't use and that doesn't do much to help in the compiler-centric development flow that they're working on supporting. Rust doesn't have a REPL because REPL-oriented development doesn't really suit Rust, not because they forgot that REPLs are a thing.

Re:The Claro Programming Language by bmitc on Thursday February 29, 2024 @05:04PM (#39555816)
> Rust's lack of a REPL wasn't just them ignoring an important innovation, it was them choosing to not implement a feature that they know their primary audience won't use

Rust moving away from its more ML-leaning beginnings is a downside, to me at least.

Re:The Claro Programming Language by lolinder on Thursday February 29, 2024 @10:29PM (#39558235)
Sure, but it was a conscious choice to do so, and Rust is actually a terrible example of a language that doesn't provide anything new.

Rust managed to normalize higher order functions in the systems space, provide a compelling answer for high performance memory safety, and mount the first successful assault on the C/C++ duopoly since C++ was conceived. That's a pretty impressive track record for disruption, and discounting it because it doesn't have enormous groundbreaking ideas and it doesn't have a REPL is pretty short-sighted.

Rust succeeded in pushing back the Overton window of programming languages because it didn't try to innovate in places that didn't matter. A more radical language might be more aesthetically appealing to someone like you but won't change the experiences of any significant number of developers in their day to day work the way Rust has.