top | item 47022431

(no title)

norman784 | 16 days ago

Most of what the section "Why ROX exists" reminds me of Rust and Zig, where both are more explicit (but Zig even more where there aren't hidden allocations, while Rust hides it).

Said that I really miss all the i{8|16|32|64|128|size}, u{8|16|32|64|128|size} and f{32|64} in other languages, I think having num and num32 is a mistake (IMHO) and naming like them like Rust/Zig provides more clarity (and it's also more concise).

For the "repeat" keyword I find it odd, because most other languages uses "for" but I can understand the reason and might be able to get used to it.

Otherwise I find always interesting new programming languages, what new they bring to the table and the lessons learned from other PLs.

discuss

order

Someone|16 days ago

> I think having num and num32 is a mistake

There still are lots of 32-, 16- and even 8-bits CPUs in active use. For those portable code that uses machine integers can make sense (and yes, it is harder to write because the integer limits will vary with the integer type used, but the added performance can be worth that).