just thinking about this, how about you keep ByteArray as it is, deprecating it, and you introduce a global Buffer still based on UInt8Array ?
in cgjs I've just done `require("buffer")` which brings in the node version of a buffer which is already based on native Uint8Array it'd be awkward to move back and forward from ByteArray <=> Buffer/Uint8Array in the transition time, so having a new primitive already well documented might be a better option? otherwise I personally wouldn't care as long as it's backward compatible Regards On Wed, Nov 1, 2017 at 2:13 AM, <philip.chime...@gmail.com> wrote: > Hi list, > > I have some code in progress to revamp GJS's ByteArray to use a standard > Javascript Uint8Array (part of modern Javascript's typed array family) > instead of the custom GJS object. Read more about it here: > https://gitlab.gnome.org/GNOME/gjs/issues/5 > > Does anyone have any thoughts on ByteArray or see any problems with the > proposed course of action? > > Regards, > Philip C > > _______________________________________________ > javascript-list mailing list > javascript-list@gnome.org > https://mail.gnome.org/mailman/listinfo/javascript-list > >
_______________________________________________ javascript-list mailing list javascript-list@gnome.org https://mail.gnome.org/mailman/listinfo/javascript-list