Comment

Comment by ChrisSD

C++ classes vs. Rust traits isn't just a matter of syntax differences.

Btw the function syntax is:

    fn foo(x: u16, y: u16) -> u32
If it were more C++ like it'd be:

    u32 foo(u16 x, u16 y)
Which is less keystrokes if anything.
parent ChrisSD 7 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton