Re:A Look at Crystal, the Programming Language for Humans
by capableweb on Friday May 05, 2023 @11:32AM
(#35830559)
Yeah, I agree that it's highly subjective. And I don't mean that people shouldn't chose something just based on one variable, it obviously depends. No language is perfect for every use case. Personally I use Rust for a lot of things, even though I'm more productive in other languages, but sometimes it's just a really good fit for the problem.
Pseudo-code, but this is how I see the difference in expressiveness and syntax:
3.times {
println('Foobar')
}
for i in 0..3 {
println!("Foobar")
}
Both of them makes sense though, so not a huge difference, but it's the same way in lots of ways in Rust in general.
Pseudo-code, but this is how I see the difference in expressiveness and syntax:
Both of them makes sense though, so not a huge difference, but it's the same way in lots of ways in Rust in general.