[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] String support in DataView

The exception issues need to be considered before finalizing the the API imo.

Getting an exception for decoding to an invalid code point or encoding where the encoding chosen has no place for the code point in question are common problems. Just throwing an exception might not be enough and the resolution might inform API decisions.

For example, if you wanted to write _javascript_ that would decode and just replace non-code points with '?'  how you do it? Similarly on encoding, any characters that didn't fit in the encoding you wanted to replace with '?' how would you do it with this API?