nicholalexander / basket

A ruby basket for collecting objects to do something with later.
MIT License
5 stars 1 forks source link

Adding multiple elements to a basket. #56

Open nicholalexander opened 1 year ago

nicholalexander commented 1 year ago

Would we like to have something like this?

Basket.add('EggBasket', [egg1, egg2, egg3, egg4]

Instead of

Basket.add('EggBasket', egg1)
Basket.add('EggBasket', egg2)
Basket.add('EggBasket', egg3)
Basket.add('EggBasket', egg4)

I mean eggs only get laid one at a time, and if you're adding multiple things at the same time, that seems like you might not need a basket. But on the other hand, if you need 12 eggs for your Quiche brunch and you go out to the chicken coop and there's 3 eggs there, you might want to just add em in all at once?

nicholalexander commented 1 year ago

I sorta think no. If you have all the eggs you need to add to a basket already, why bother with a basket. Unless you have 10 eggs and you need a dozen and the next two aren't coming until tomorrow. So maybe I don't know what I think.