2012年01月24日23:30 カテゴリLightweight LanguagesNews rust - を早速試してみた というわけで早速。 Mozillaから新しいプログラミング言語「Rust」のバージョン0.1がリリース - [モ]Modern Syntax ということで言語マニアな方、どうぞ。 え?これで初物? 思いのほか完成度が高くてびっくり。 論より証拠で、わざと特長的な機能を無駄に使ってfizzbuzzを書いてみた。 fizzbuzz.rs use std; // for std::io and std::map native mod c { fn atoi(src: *u8) -> ctypes::c_int; } fn rust_atoi(s:str) -> int unsafe { ret c::atoi(vec::unsafe::to_ptr(str::bytes(
![rust - を早速試してみた : 404 Blog Not Found](https://cdn-ak-scissors.b.st-hatena.com/image/square/da78a05937633f7a2b4b2219826151c370cd607b/height=288;version=1;width=512/https%3A%2F%2Fparts.blog.livedoor.jp%2Fimg%2Fusr%2Fcmn%2Fogp_image%2Flivedoor.png)