Design for collections upgrades
Ola Bini
ola.bini at gmail.com
Tue Mar 8 15:23:53 PST 2011
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> A better argument against making filter() return a stream is that it's
> unexpected. The verb "filter" means "filter", not "create a stream
> that when later evaluated will filter." You can imagine users putting
I personally am a fan of this argument. I ended up using the past tense
for lazy sequences in Ioke for this specific reason. It becomes
immediately obvious if you're in strict or lazy-land based on the tense
of the method names. To Brian's argument, the type system will tell you
too, but that's not always apparent from reading a specific line of code.
Cheers
- --
Ola Bini (http://olabini.com)
Ioke - JRuby - ThoughtWorks
"Yields falsehood when quined" yields falsehood when quined.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBAgAGBQJNdrqIAAoJEClcdGmEr38MVewP/j39GdhfgPjYoPrTxOHJfnMt
bNd6eEN+mTudRm2iy7saUriwTwC6huQY0jZdL384wS+0xB3FzqQ27vymaubIsjCl
eAa8Ld3mTvOtuvN8PEd2DAJfU2TfNLI9j/dhJnkMoDGUUDohi02EoVHW5SPFVYYm
OWJiKwEPs0fOd+T7A5hk065a2sv8x63J5D7T26rzFnDzVqPak9QfxSkgjUh61go3
o1j99BE1YpNIuvFQJ8vI5VrUeCXMor900H+1tUMojEmKrGrtUGsdfqAZM9a6awq8
Iy/CpLX3cyplFkb0fDlie5XhWkvknZJ7E2pcDmQFYXaSQ9v4U25c2CMu7SpXCMNw
JNGxtbVvWJnrAxzI4P2Ss0JMsbAcDYUDG7sI19LVt9gEH+uRQSwkh2pcSgMNwXBt
DXWx6RVIRE9zVL2H0e7WHArdj1oc1NG57/FLh38wVMkV0iMs5ycvrjK4Kph/clPQ
zlIJnbjsyuyn5uQycuLsGIBo0TTaPbw29r8QTPKaMQCsxF2PZQnWh7NqgBRTAjQi
RQzbBMcsfpPJgoBRydyBBaZtUW+GmVCHGJ//TB3J387gD8OQp8AlDL+M6JFJ8y/c
lUpbAZxoHIz79cut68H2MqE3I2qHsNmwVt1ARmy8L/Yxxhm/eWXVCaF8TxbdJk15
pMNgRc2teUUoYb4/WhJJ
=f6kE
-----END PGP SIGNATURE-----
More information about the lambda-dev
mailing list