40
edits
(Created page with 'This proposal was written by Daniel Friesen as an alternative to the Binary/B proposal. It reflects the Blob type that is used in a number of existing Server-side JavaScript imp…') |
No edit summary |
||
| Line 9: | Line 9: | ||
actually implemented something more like a stream API based buffer rather than | actually implemented something more like a stream API based buffer rather than | ||
anything remotely resembling an array. | anything remotely resembling an array. | ||
One of the important points thought about in this proposal was interoperability between strings and blobs. | |||
ie: The ability to write code that can abstractly extract, combine, buffer, and whatnot strings and blobs with a api ignorant of whether the data is binary or text. As well things which seamed counter-intuitive (putting .charAt on Blob) were avoided. | |||
Most of this was based off of APIs drafted for MonkeyScript ([http://draft.monkeyscript.org/api/_std/Blob.html Blob] [http://draft.monkeyscript.org/api/_std/Buffer.html Buffer]). | Most of this was based off of APIs drafted for MonkeyScript ([http://draft.monkeyscript.org/api/_std/Blob.html Blob] [http://draft.monkeyscript.org/api/_std/Buffer.html Buffer]). | ||
edits