码迷,mamicode.com
首页 > 其他好文 > 详细

Learning Rust - Syntax

时间:2017-06-23 10:35:06      阅读:124      评论:0      收藏:0      [点我收藏+]

标签:c++   out   cal   ast   ted   pytho   replace   call   and   

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

标签:c++   out   cal   ast   ted   pytho   replace   call   and   

原文地址:http://www.cnblogs.com/zhuangzebo/p/7068185.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!