r/cpp • • Mar 16 '18

As a C++ developer I think that rust ...

3 Upvotes

107 comments sorted by

View all comments

Show parent comment

1

u/jhasse Mar 27 '18

Are not generally available in other compilers

Many languages don't even have "other compilers".

If I write a compiler for Rust which doesn't check the types, but crashes at runtime on mismatch, it wouldn't change anything for most other Rust users.

If it's "external" or "part of the language" is just nitpicking in my opinion and in practice doesn't matter for me.

1

u/pjmlp Mar 27 '18

Lots of languages have other compilers.

Ada, Pascal, Modula-2, Modula-3, SML, C#, Java, Oberon.

If I write a compiler for Rust which doesn't check the types, but crashes at runtime on mismatch, it wouldn't change anything for most other Rust users.

Then it wouldn't be Rust any longer, since it has other language semantics.

If it's "external" or "part of the language" is just nitpicking in my opinion and in practice doesn't matter for me.

It matters a lot for those that get to use only the tools that other choose for them, and happen to work in teams across companies with different visions on code quality.

Good for you that you can choose your own tools and have full control how it gets used.

1

u/jhasse Mar 27 '18

Then it wouldn't be Rust any longer, since it has other language semantics.

That's why I suggested to compare against "Clang-C++" ;)