Re:Announcing Rust 1.0 Beta
by Ygg2 on Wednesday April 08, 2015 @07:30AM
(#9340016)
What people are claiming this? Is there some argument
is much better than
in monospaced fonts? I agree I prefer it, but I know it comes down to subjectivity and familiarity. Not the most compelling reasons.
Sure, you can write that, but you can also write:
Rust won't protect you from stupid mistakes. The only question is whether it will allow you to override index syntax.
I actually prefer this small token of power, as opposed to having to write:
That gets tedious fast.
Correct, because they are both built in literals. String isn't a built in literal. You can't have:
No matter how many time you call Index on your array it stays the same. What kind of trippy Index you want to implement is still there, only with uglier syntax.
It's not. All macro invocations are fenced in by macro calls. All syntax extensions are followed by extension calls. Could macros/syntax extensions do horrible things? Sure. So can regular code.
[ Parent
| on HN ]
There are no comments on this comment yet.