首页 > 其他 > 详细

Learning Rust - Syntax

时间:2017-06-23 09:34:22      阅读:423      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!