Re: Re: Shouldn't collection zip functions return streams?

Simon Ochsenreither <[email protected]> Mon, 30 Nov 2015 12:57:27 -0800 (PST)
Newsgroups gmane.comp.lang.scala
Message-ID <[email protected]>

> Programmers need to know when an operation is strict or not. It will help 
> if the collection libraries have some simple way to know, and not just 
> decided differently for each operation on a case by case basis.
>

Exactly! This is one of the main benefits behind composing computations: 
Nothing gets executed until it is explicitly requested.
This also solves the current issue with "we have this huge collection API 
that creates new values vs. these dozen important mutable operations which 
change the data structure itself – and no good way to discover the 
difference" Haoyi mentioned.

-- 
You received this message because you are subscribed to the Google Groups "scala-language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.