Rxjs: Rename window to windowWith

Created on 6 Feb 2020  路  2Comments  路  Source: ReactiveX/rxjs

We need to deprecate window, because it was a really dumb name, and rename it to windowWith or the like. I suggest windowWith just out of the spirit of concatWith and mergeWith renames... But I'm open to suggestions.

Related: https://github.com/ReactiveX/rxjs/issues/3788

Help Wanted

Most helpful comment

Similarly, we might want to rename buffer to bufferWith because they're closely related.

All 2 comments

Similarly, we might want to rename buffer to bufferWith because they're closely related.

Is there a concept for a counter part?
if 'With' is used to relate to a operator.
E. g. mergeWith. merge would be the counter part.
this obviously doesn't work for window.

The real problem is the basenaming window.

I suggest take a new name.
windows? slice? span?

Was this page helpful?
0 / 5 - 0 ratings