Learning Rust - Syntax

Posted 庄泽波の博客

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Learning Rust - Syntax相关的知识,希望对你有一定的参考价值。

Rust is another compiling language that may replace the position of C/C++ in server filed.

It runs fast and can be written easily comparing with Python/Go. Python is a dynamic language

and is limited in GIL, while Go is limited in its GC. That is reason why I prefer to learning Rust. 

 

1.Rust macro:

If we add `!` affter a callee function, we call on a macro. And it is normal function when we call

without `!`.

println!("Hello World")

  

以上是关于Learning Rust - Syntax的主要内容,如果未能解决你的问题,请参考以下文章