Proposal to remove [Stream|Collection]>>#write:
Hi, Did you know that both Stream and Collection respond to #write: (as an alias to #<< and #add: respectively) ? I sure did not (and I did quite a bit of stream hacking). This selector is not used for these 2 receiver types in the standard image (except for one unit test), I never saw it being used in actual code. These are just aliases that add nothing but cognitive load. They make the API's of two important hierarchies (and especially the interface for non-inheriting classes) heavier than needed for no functional benefit. So I propose to remove [Stream|Collection]>>#write: What say thou ? Sven
+ 1 :) But Iâm an easy person when it is about cleaning.
On 22 Feb 2019, at 15:39, Sven Van Caekenberghe <sven@stfx.eu> wrote:
Hi,
Did you know that both Stream and Collection respond to #write: (as an alias to #<< and #add: respectively) ? I sure did not (and I did quite a bit of stream hacking).
This selector is not used for these 2 receiver types in the standard image (except for one unit test), I never saw it being used in actual code.
These are just aliases that add nothing but cognitive load.
They make the API's of two important hierarchies (and especially the interface for non-inheriting classes) heavier than needed for no functional benefit.
So I propose to remove [Stream|Collection]>>#write:
What say thou ?
Sven
https://github.com/pharo-project/pharo/issues/2701
On 22 Feb 2019, at 15:57, Alistair Grant <akgrant0710@gmail.com> wrote:
On Fri, 22 Feb 2019 at 15:50, Esteban Maringolo <emaringolo@gmail.com> wrote:
El vie., 22 feb. 2019 a las 11:43, ducasse (<stepharo@netcourrier.com>) escribió:
+ 1 :)
But Iâm an easy person when it is about cleaning.
+1. That makes us two.
+1
Cheers, Alistair
On 22 Feb 2019, at 19:39, Stephan Eggermont <stephan@stack.nl> wrote:
Sven Van Caekenberghe <sven@stfx.eu> wrote: .
So I propose to remove [Stream|Collection]>>#write:
What say thou ?
Check the selectors used in the latest packages on squeaksource, ss3, smalltalkhub and decide.
Stephan
You forgot GitHub and all private company repositories in the world.
Am 22.02.2019 um 19:45 schrieb Sven Van Caekenberghe <sven@stfx.eu>:
On 22 Feb 2019, at 19:39, Stephan Eggermont <stephan@stack.nl> wrote:
Sven Van Caekenberghe <sven@stfx.eu> wrote: .
So I propose to remove [Stream|Collection]>>#write:
What say thou ?
Check the selectors used in the latest packages on squeaksource, ss3, smalltalkhub and decide.
Stephan
You forgot GitHub and all private company repositories in the world.
hehe, indeed. Norbert
Trying to be *somewhat* compatible and verifying (even quickly) that it's not breaking a gazillion things is the very least someone can do... Backward compatibility is NOT a sin! ;) On 2019-02-22 13:45, Sven Van Caekenberghe wrote:
On 22 Feb 2019, at 19:39, Stephan Eggermont <stephan@stack.nl> wrote:
Sven Van Caekenberghe <sven@stfx.eu> wrote: .
So I propose to remove [Stream|Collection]>>#write:
What say thou ? Check the selectors used in the latest packages on squeaksource, ss3, smalltalkhub and decide.
Stephan You forgot GitHub and all private company repositories in the world.
-- ----------------- Benoît St-Jean Yahoo! Messenger: bstjean Twitter: @BenLeChialeux Pinterest: benoitstjean Instagram: Chef_Benito IRC: lamneth Blogue: endormitoire.wordpress.com "A standpoint is an intellectual horizon of radius zero". (A. Einstein)
participants (7)
-
Alistair Grant -
Benoit St-Jean -
ducasse -
Esteban Maringolo -
Norbert Hartl -
Stephan Eggermont -
Sven Van Caekenberghe