News for hackers. Stuff that matters.
Re:WebAssembly from Scratch: From FizzBuzz to DooM by brabel on Thursday July 15, 2021 @02:49AM (#27842053)
I don't know what you're arguing about. The interface types proposal defines a string like this:

    string ≡ (list char)
char is defined to be a Unicode scalar value (i.e., a non-surrogate code point).

Basically, this is "the most safe alternative"??!

Re:WebAssembly from Scratch: From FizzBuzz to DooM by mamcx on Thursday July 15, 2021 @11:23AM (#27845807)
I was arguing against the idea of "string are implemented differently by different languages, so WHICH one choose?".

A safe one. Your sample is that - except I think is better if is a utf-8 string, but this one works for me too-. What will be worrisome is if is made to be like in C.