Adelie is a .Net-compatible statically typed language that aims to combine the benefits of Rust and C#.
- A language that takes advantage of Rust and C#
- GUI application development using designer
Please see Docs
fn main() {
let mut i: i32 = 1;
while i <= 100 {
if i % 15 == 0 {
println!("FizzBuzz");
} else if i % 3 == 0 {
println!("Fizz");
} else if i % 5 == 0 {
println!("Buzz");
} else {
println!(i);
}
i += 1;
}
}
#[link(name="System.Windows.Forms.dll", publickeytoken="B7 7A 5C 56 19 34 E0 89")]
extern {
mod System {
mod Windows {
mod Forms {
enum DialogResult {}
struct MessageBox {}
impl MessageBox {
fn Show(text: string) -> DialogResult {}
}
}
}
}
}
fn main() {
System::Windows::Forms::MessageBox::Show("hello!");
}
MIT