Closed oxinabox closed 5 years ago
mhm, not a bad idea to overload collect
and friends. In general, do you agree that by default it makes sense that eachobs
is buffering?
There is ObsView
as the safe alternative
In general, do you agree that by default it makes sense that eachobs is buffering?
I'm not sure there is a right answer. Pros and Cons. Fast by default is good. Safe by default is good.
I think overloading collect etc to give errors would help a fair bit. Obviously can't overload everything from all packages. But Base, and idk anything from JuliaLang would be good. I wonder if anyone on discourse has thoughts on this.
I also use this buffer pattern in CorpusLoaders.jl
output
For the obvious reasons.
Do you think it is reasonable to overload
collect
,unique
and what ever other functions in Base break forBufferGetObs
to give errors when you try and use them? Or maybe wrap theBufferGetObs
in another view to make it safe?