practice/naming #813
Replies: 5 comments 9 replies
-
可惜的是标准库里的是 |
Beta Was this translation helpful? Give feedback.
-
总觉得 |
Beta Was this translation helpful? Give feedback.
-
命名规范的警告怎么关掉啊?有时候命名法很不符合数学直观,比如我要计算矩阵的LU分解,将上下三角矩阵命名为LU就会警告,很烦 |
Beta Was this translation helpful? Give feedback.
-
不晓得会不会挨打😄,根据这里说的特征命名推荐使用动词, 2.8.2 特征Trait那一节, 示例里面的Summary Trait是不是该用Summarize 作为特征名更好? pub trait Summarize {
fn summarize(&self) -> String;
} |
Beta Was this translation helpful? Give feedback.
-
Rust里命名是支持中文的。我全都用中文进行命名的,函数名、变量名、类型名全是中文。 |
Beta Was this translation helpful? Give feedback.
-
practice/naming
https://course.rs/practice/naming.html
Beta Was this translation helpful? Give feedback.
All reactions