有关Rust的规范或标准吗?

huangapple go评论63阅读模式
英文:

Is there a specification or standard for Rust?

问题

关于Rust是否有规范或标准,类似于JavaScript的ECMAScript规范吗?

我找到了https://github.com/rust-lang/reference,并且上面写着:

本文档不是规范性文件。它可能包含与rustc本身相关的细节,不应被视为Rust语言的规范。我们打算未来会制定这样的文档,但目前这是我们拥有的内容。

英文:

Is there a specification or standard for Rust? Kind of like the ECMAScript specification for JavaScript?

I found https://github.com/rust-lang/reference, and it says:

> This document is not normative. It may include details that are specific to rustc itself, and should not be taken as a specification for the Rust language. We intend to produce such a document someday, but this is what we have for now.

答案1

得分: 5

不,Rust尚未标准化,也没有完整的规范。有关更多信息,请参阅Rust库团队的Mara Bos在这篇出色的博文中:https://blog.m-ou.se/rust-standard/

英文:

No, Rust is not standardized and doesn't have a complete specification as of yet. Read more about it in this great blog post by Mara Bos from Rust's library team: https://blog.m-ou.se/rust-standard/

答案2

得分: 2

不,但目前尚未接受的RFC提出了这个: https://github.com/rust-lang/rfcs/pull/3355。然而,它并没有像C++那样提出一个标准,例如,阅读Mara的博客文章以了解为什么。

英文:

No, but there's not-yet-accepted RFC for that: https://github.com/rust-lang/rfcs/pull/3355. However, it doesn't suggest a standard like C++'s, for example, read Mara's blog post for an explanation why.

huangapple
  • 本文由 发表于 2023年3月15日 17:52:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/75743030.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定