Фото: Vincent Thian / AP
In practice, (and yes, there are always exceptions to be found) BYOB is rarely used to any measurable benefit. The API is substantially more complex than default reads, requiring a separate reader type (ReadableStreamBYOBReader) and other specialized classes (e.g. ReadableStreamBYOBRequest), careful buffer lifecycle management, and understanding of ArrayBuffer detachment semantics. When you pass a buffer to a BYOB read, the buffer becomes detached — transferred to the stream — and you get back a different view over potentially different memory. This transfer-based model is error-prone and confusing:
,这一点在heLLoword翻译官方下载中也有详细论述
// Check for BYOB request FIRST
保持足够的耐心:实话说我不属于耐心特别好的人。这几年逐渐控制自己的情绪,但有时候看到她做不好事情、看到她任性耍小脾气,我还是会忍不住发脾气,还是会批评她、催促她。希望新的一年,我会更好的保持耐心,引导孩子帮助她成长。