vak: (Default)
[personal profile] vak
Вот ещё один забавный язык программирования, ZZ называется. Внешне напоминает Rust, но на самом деле просто формально доказуемое подмножество Си со смешным синтаксисом.
using <stdio.h>::{printf}

export fn main() -> int {
    let r = Random{
        num: 42,
    };
    printf("your lucky number: %u\n", r.gen());
    return 0;
}

struct Random {
    u32 num;
}

fn gen(Random *self) -> u32 {
    return self->num;
}
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org