ReadStream API

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

ReadStream API

Nicolas Cellier
Other reasons I'd like a rewrite of this big ball of...

(ReadStream on: 'a barbecue' from:3  to: 5) next: 8.
"-> 'bar'  Fine, next: doesn't raise an Error because understood as
nextAvailable: (this is questionable, but I admit it)"

(ReadStream on: 'a barbecue' from:3  to: 5) reset; next: 8.
"-> 'a bar'  Hmm, not the least surprising "

(ReadStream on: 'a barbecue' from:3  to: 5) upTo: $u.
"-> 'barbec'  Hem, me start laughing"

(ReadStream on: 'a barbecue' from:3  to: 5) upToEnd.
"-> 'barbecue' at least, this is consistent with previous shit"

(ReadStream on: 'a barbecue' from:3  to: 5) size. "Guess what... 3
like next: ? 8 like upToEnd ?
"-> 5 Oh no, ROTFL"

Question du jour: is there any code relying on these "features" ?
Otherwise, i can backport some changes from Xtream.

Nicolas