Some questions on latest work
Suliman via Digitalmars-d
digitalmars-d at puremagic.com
Tue Apr 26 01:20:49 PDT 2016
On Tuesday, 26 April 2016 at 01:04:21 UTC, Bill Hicks wrote:
> If you are running away from C++, Rust should be your first
> choice as a systems programming language.
Are you joking? When I am reading it's code my eyes begin to
bleed. It's syntax is terrible.
Look at it:
enum Edge<T> {
Edge(Option<T>),
Nothing
}
impl<T> fmt::Display for Edge<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", match self {
&Edge::Edge(_) => "E",
&Edge::Nothing => "-",
})
}
}
impl<T: fmt::Display> fmt::Display for Edge<T> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}({})", match self {
&Edge::Edge(_) => "E",
&Edge::VirtualEdge(_) => "e",
&Edge::Nothing => "-",
}, match self {
&Edge::Edge(Some(v)) => v,
&Edge::VirtualEdge(Some(v)) => v,
_ => "-"
})
}
}
Do you really think that modern language should like this?
I talked with a lot of rust fun-boys. Most of them do not
understand do not understand the code of their favourite language.
Rust will die when Mozilla will move to WebKit. I much more
believe in Swift success, that that Rust have any future.
More information about the Digitalmars-d
mailing list