Functional Programming in Scala

756 views
Skip to first unread message

Tony Morris

unread,
Jul 25, 2011, 9:28:44 PM7/25/11
to scala-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everyone,
As promised, we will be writing a book on Functional Programming in
Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
Manning Publications and we hope to bring you all a book that can help
with many of the functional programming topics that we hear about often.

The three of us have come to appreciate the challenge of teaching many
of these topics and we are confident that we can take it on in the
form of a book for the general audience. We are all pretty excited
about this endeavour and we all hope to effectively conquer the
hurdles that present themselves along this well-trodden path of learning.

Stay tuned!

- --
Tony Morris
http://tmorris.net/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4uGEwACgkQmnpgrYe6r622uQCggYpMOxKss320lxZ9PWOw4q8U
teUAmwSWo5gdH/EuBoxOhqJHsA3YSDaf
=ChGJ
-----END PGP SIGNATURE-----

Tony Morris

unread,
Jul 25, 2011, 9:34:08 PM7/25/11
to scala-user

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 26/07/11 11:28, Tony Morris wrote:
>
> Hello everyone, As promised, we will be writing a book on
> Functional Programming in Scala. Paul Chiusano, Runar Bjarnason and
> me have just signed with Manning Publications and we hope to bring
> you all a book that can help with many of the functional
> programming topics that we hear about often.
>
> The three of us have come to appreciate the challenge of teaching
> many of these topics and we are confident that we can take it on in
> the form of a book for the general audience. We are all pretty
> excited about this endeavour and we all hope to effectively conquer
> the hurdles that present themselves along this well-trodden path
> of learning.
>
> Stay tuned!
>

s/me/I

Woops!


- --
Tony Morris
http://tmorris.net/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4uGZAACgkQmnpgrYe6r61PRgCffh4uJOtjnvkVX1dTOB5oSOQw
gi0AnjPF+Npt7J65YjPX3wFyJP+2ejhE
=D+mB
-----END PGP SIGNATURE-----

Durgesh Mankekar

unread,
Jul 25, 2011, 9:34:25 PM7/25/11
to scala-user, tmo...@tmorris.net
My prayers have never been answered so fast. Thanks guys. Looking forward to the MEAP releases.

-Durgesh

Daniel Sobral

unread,
Jul 25, 2011, 9:36:51 PM7/25/11
to tmo...@tmorris.net, scala-user
Ooooohhhh! I can barely wait for a MEAP!

--
Daniel C. Sobral

I travel to the future all the time.

Ken McDonald

unread,
Jul 25, 2011, 10:06:39 PM7/25/11
to scala...@googlegroups.com, tmo...@tmorris.net
Yeah, this is fantastic. I'll definitely be an early purchaser.

Ken

Raymond Tay

unread,
Jul 25, 2011, 10:13:01 PM7/25/11
to scala...@googlegroups.com, tmo...@tmorris.net
Looking forward to the MEAP :)

Richard Wallace

unread,
Jul 25, 2011, 10:22:10 PM7/25/11
to tmo...@tmorris.net, scala-user
I'll definitely purchase! In fact, I'd be more than happy to lend some
time to do reviews.

Interestingly enough, I'm also thinking of giving a presentation
titled "Introduction to Functional Programming in Scala" at QCon SF
and Devoxx. My plan right now is to try and create a sort of
synthesis of the "Deriving Scalaz" talk that Nick Partridge did and
Runars guerilla guide from NE Scala.

Rich

Kevin Esler

unread,
Jul 25, 2011, 10:23:21 PM7/25/11
to scala...@googlegroups.com, tmo...@tmorris.net
Great news. Looking forward to it.

ericacm

unread,
Jul 25, 2011, 10:31:26 PM7/25/11
to scala-user
Awesome news! Thanks guys!

On Jul 25, 9:28 pm, Tony Morris <tonymor...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello everyone,
> As promised, we will be writing a book on Functional Programming in
> Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
> Manning Publications and we hope to bring you all a book that can help
> with many of the functional programming topics that we hear about often.
>
> The three of us have come to appreciate the challenge of teaching many
> of these topics and we are confident that we can take it on in the
> form of a book for the general audience. We are all pretty excited
> about this endeavour and we all hope to effectively conquer the
> hurdles that present themselves along this well-trodden path of learning.
>
> Stay tuned!
>
> - --
> Tony Morrishttp://tmorris.net/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

Glen Marchesani

unread,
Jul 25, 2011, 11:37:03 PM7/25/11
to scala-user

+1 for the MEAP....


On Jul 25, 9:28 pm, Tony Morris <tonymor...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello everyone,
> As promised, we will be writing a book on Functional Programming in
> Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
> Manning Publications and we hope to bring you all a book that can help
> with many of the functional programming topics that we hear about often.
>
> The three of us have come to appreciate the challenge of teaching many
> of these topics and we are confident that we can take it on in the
> form of a book for the general audience. We are all pretty excited
> about this endeavour and we all hope to effectively conquer the
> hurdles that present themselves along this well-trodden path of learning.
>
> Stay tuned!
>
> - --
> Tony Morrishttp://tmorris.net/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

Debasish Ghosh

unread,
Jul 26, 2011, 12:33:33 AM7/26/11
to tmo...@tmorris.net, scala-user
Awesome! Any tentative timeline for the MEAP ?
--
Debasish Ghosh
http://manning.com/ghosh

Twttr: @debasishg
Blog: http://debasishg.blogspot.com
Code: http://github.com/debasishg

√iktor Ҡlang

unread,
Jul 26, 2011, 2:59:15 AM7/26/11
to dgh...@acm.org, tmo...@tmorris.net, scala-user
Expecting to get my copy signed!
--
Viktor Klang

Akka Tech Lead
Typesafe - Enterprise-Grade Scala from the Experts

Twitter: @viktorklang

Markus Jais

unread,
Jul 26, 2011, 3:20:34 AM7/26/11
to scala...@googlegroups.com
Awesome. Consider one sold!

Markus


Von: Tony Morris <tonym...@gmail.com>
An: scala-user <scala...@googlegroups.com>
Gesendet: 3:28 Dienstag, 26.Juli 2011
Betreff: [scala-user] Functional Programming in Scala

Sylvain HENRY

unread,
Jul 26, 2011, 3:41:42 AM7/26/11
to scala...@googlegroups.com
s/one/two ;-)
-- 
Sylvain HENRY
PhD Student INRIA/LaBRI RunTime Team
Tel: +33 (0)6-70-94-86-76
http://hsyl20.fr

lester

unread,
Jul 26, 2011, 5:11:35 AM7/26/11
to scala-user
Awesome news!!!

Can't wait to see first chapters in MEAP!

Thank you, guys!

Vladimir


On 26 июл, 05:28, Tony Morris <tonymor...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello everyone,
> As promised, we will be writing a book on Functional Programming in
> Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
> Manning Publications and we hope to bring you all a book that can help
> with many of the functional programming topics that we hear about often.
>
> The three of us have come to appreciate the challenge of teaching many
> of these topics and we are confident that we can take it on in the
> form of a book for the general audience. We are all pretty excited
> about this endeavour and we all hope to effectively conquer the
> hurdles that present themselves along this well-trodden path of learning.
>
> Stay tuned!
>
> - --
> Tony Morrishttp://tmorris.net/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

Derek Wyatt

unread,
Jul 26, 2011, 5:17:06 AM7/26/11
to scala-user
Tony, that's awesome! I'll grab it as soon as it comes out in Beta.

Cheers!
Derek

On Jul 25, 9:28 pm, Tony Morris <tonymor...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello everyone,
> As promised, we will be writing a book on Functional Programming in
> Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
> Manning Publications and we hope to bring you all a book that can help
> with many of the functional programming topics that we hear about often.
>
> The three of us have come to appreciate the challenge of teaching many
> of these topics and we are confident that we can take it on in the
> form of a book for the general audience. We are all pretty excited
> about this endeavour and we all hope to effectively conquer the
> hurdles that present themselves along this well-trodden path of learning.
>
> Stay tuned!
>
> - --
> Tony Morrishttp://tmorris.net/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

Anwar Rizal

unread,
Jul 26, 2011, 6:17:05 AM7/26/11
to Glen Marchesani, scala-user
Can't wait for the table of contents.

Marc-Daniel Ortega

unread,
Jul 26, 2011, 6:37:27 AM7/26/11
to scala...@googlegroups.com
I buy the first chapter of the MEAP as soon as it is released :)  It is a promise.

Razvan Cojocaru

unread,
Jul 26, 2011, 10:05:59 AM7/26/11
to tmo...@tmorris.net, scala-user
Well, finally! Great and good luck. You may use me as a guinea pig... :)

Meredith Gregory

unread,
Jul 26, 2011, 2:22:22 PM7/26/11
to Markus Jais, scala...@googlegroups.com
Dear Tony, Runar and Paul,

Awesome^Awesome! i'm looking forward to holding a signed copy in my hands.

Best wishes,

--greg
--
L.G. Meredith
Managing Partner
Biosimilarity LLC
7329 39th Ave SW

Stefan Zeiger

unread,
Jul 26, 2011, 3:02:27 PM7/26/11
to scala...@googlegroups.com
On 2011-07-26 9:41, Sylvain HENRY wrote:
s/one/two ;-)

Le 26/07/2011 09:20, Markus Jais a écrit :
Awesome. Consider one sold!

Markus


...and my axe!

It would be great to have a book that covers the more abstract (or more awesome :) functional stuff from scalaz

-sz

Miguel Negrão

unread,
Jul 26, 2011, 4:01:52 PM7/26/11
to scala...@googlegroups.com, tmo...@tmorris.net
one more customer here :-)

Miguel Negrão

lhankewitz

unread,
Jul 26, 2011, 4:43:31 PM7/26/11
to scala-user
Concratualtions for signing with Manning.

Hope your are interested in feedback ;-)

Good luck

Lutz

Naftoli Gugenheim

unread,
Jul 26, 2011, 5:37:45 PM7/26/11
to Meredith Gregory, Markus Jais, scala...@googlegroups.com
PGP SIGNED?

Alex Repain

unread,
Jul 26, 2011, 6:30:02 PM7/26/11
to Naftoli Gugenheim, Meredith Gregory, Markus Jais, scala...@googlegroups.com
That announcement sounds like a beautiful promise to those who want to make sure they "get it", using Scala. Count me in for a buy, too !

Alex

2011/7/26 Naftoli Gugenheim <nafto...@gmail.com>



--
Alex REPAIN
ENSEIRB-MATMECA - student
TECHNICOLOR R&D - intern
BORDEAUX I      - master's student

SCALA           - enthusiast


jherber

unread,
Jul 26, 2011, 8:40:04 PM7/26/11
to scala-user
I'm in for the MEAP as well. Thanks for taking on such a challenging
topic!

Best,

Jim Herber

On Jul 25, 9:28 pm, Tony Morris <tonymor...@gmail.com> wrote:

Giovanni Ruggiero

unread,
Jul 27, 2011, 6:20:23 PM7/27/11
to scala-user
Eagerly awaiting!

On Jul 26, 3:28 am, Tony Morris <tonymor...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello everyone,
> As promised, we will be writing a book on Functional Programming in
> Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
> Manning Publications and we hope to bring you all a book that can help
> with many of the functional programming topics that we hear about often.
>
> The three of us have come to appreciate the challenge of teaching many
> of these topics and we are confident that we can take it on in the
> form of a book for the general audience. We are all pretty excited
> about this endeavour and we all hope to effectively conquer the
> hurdles that present themselves along this well-trodden path of learning.
>
> Stay tuned!
>
> - --
> Tony Morrishttp://tmorris.net/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

Paweł Sołtysek

unread,
Jul 28, 2011, 8:15:49 AM7/28/11
to scala-user
Fantastic news. Looking forward to the MEAP release. :-)
---------
Pawel

Erik Post

unread,
Jul 28, 2011, 9:08:29 AM7/28/11
to scala...@googlegroups.com, tmo...@tmorris.net
Totally awesome! I'm buying it and I'll force all my nerd friends to do the same! :D

Op dinsdag 26 juli 2011 03:28:44 UTC+2 schreef Tony Morris het volgende:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everyone,
As promised, we will be writing a book on Functional Programming in
Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
Manning Publications and we hope to bring you all a book that can help
with many of the functional programming topics that we hear about often.

The three of us have come to appreciate the challenge of teaching many
of these topics and we are confident that we can take it on in the
form of a book for the general audience. We are all pretty excited
about this endeavour and we all hope to effectively conquer the
hurdles that present themselves along this well-trodden path of learning.

Stay tuned!

- --
Tony Morris
http://tmorris.net/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

Emre Sevinç

unread,
Jul 28, 2011, 9:12:25 AM7/28/11
to scala-user
On Jul 26, 3:28 am, Tony Morris <tonymor...@gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello everyone,
> As promised, we will be writing a book on Functional Programming in
> Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
> Manning Publications and we hope to bring you all a book that can help
> with many of the functional programming topics that we hear about often.

Great news indeed.

Started to watch the Manning website for the upcoming title! Looking
forward to holding it in my hands ;-)

Cheers,

--
Emre

Channing Walton

unread,
Jul 28, 2011, 3:09:29 PM7/28/11
to scala...@googlegroups.com, tmo...@tmorris.net
awesome

Karel Smutný

unread,
Jul 29, 2011, 1:19:04 PM7/29/11
to scala-user
+1 for the MEAP, looking forward (Google Groups definitely need some
+1 or Like system)

Oscar Picasso

unread,
Jul 30, 2011, 4:10:17 PM7/30/11
to scala-user
+1 for the MEAP

I would also be very interested by Greg Meredith's book. Any idea of
the expected publishing date ?

Oscar Picasso

Bill Venners

unread,
Sep 16, 2011, 1:23:27 PM9/16/11
to Oscar Picasso, scala-user
Hi Oscar,

I just saw this question now. We will have a PrePrint of Greg's book
out soon, with final publication set for early next year.

Bill

--
Bill Venners
Artima, Inc.
http://www.artima.com

Daniel Sobral

unread,
Sep 16, 2011, 5:04:59 PM9/16/11
to Bill Venners, Oscar Picasso, scala-user
Will there be an early release PDF?

--
Daniel C. Sobral

I travel to the future all the time.

gobagoo

unread,
Sep 17, 2011, 7:12:25 AM9/17/11
to scala-user
I can't wait. My brain will decompose into a gelatinous putty, but I
know that I will enjoy reading it.

On Jul 26, 6:30 pm, Alex Repain <alex.rep...@gmail.com> wrote:
> That announcement sounds like a beautiful promise to those who want to make
> sure they "get it", using Scala. Count me in for a buy, too !
>
> Alex
>
> 2011/7/26 Naftoli Gugenheim <naftoli...@gmail.com>
>
>
>
>
>
>
>
>
>
> > PGP SIGNED?
>
> > On Tue, Jul 26, 2011 at 2:22 PM, Meredith Gregory <
> > lgreg.mered...@gmail.com> wrote:
>
> >> Dear Tony, Runar and Paul,
>
> >> Awesome^Awesome! i'm looking forward to holding a signed copy in my hands.
>
> >> Best wishes,
>
> >> --greg
>
> >> On Tue, Jul 26, 2011 at 12:20 AM, Markus Jais <markus.j...@yahoo.de>wrote:
>
> >>> Awesome. Consider one sold!
>
> >>> Markus
>
> >>> ------------------------------
> >>> *Von:* Tony Morris <tonymor...@gmail.com>
> >>> *An:* scala-user <scala...@googlegroups.com>
> >>> *Gesendet:* 3:28 Dienstag, 26.Juli 2011
> >>> *Betreff:* [scala-user] Functional Programming in Scala
>
> >>> -----BEGIN PGP SIGNED MESSAGE-----
> >>> Hash: SHA1
>
> >>> Hello everyone,
> >>> As promised, we will be writing a book on Functional Programming in
> >>> Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
> >>> Manning Publications and we hope to bring you all a book that can help
> >>> with many of the functional programming topics that we hear about often.
>
> >>> The three of us have come to appreciate the challenge of teaching many
> >>> of these topics and we are confident that we can take it on in the
> >>> form of a book for the general audience. We are all pretty excited
> >>> about this endeavour and we all hope to effectively conquer the
> >>> hurdles that present themselves along this well-trodden path of learning.
>
> >>> Stay tuned!
>
> >>> - --
> >>> Tony Morris
> >>>http://tmorris.net/
>
> >>> -----BEGIN PGP SIGNATURE-----
> >>> Version: GnuPG v1.4.10 (GNU/Linux)
> >>> Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/
>
> >>> iEYEARECAAYFAk4uGEwACgkQmnpgrYe6r622uQCggYpMOxKss320lxZ9PWOw4q8U
> >>> teUAmwSWo5gdH/EuBoxOhqJHsA3YSDaf
> >>> =ChGJ
> >>> -----END PGP SIGNATURE-----
>
> >> --
> >> L.G. Meredith
> >> Managing Partner
> >> Biosimilarity LLC
> >> 7329 39th Ave SW
> >> Seattle, WA 98136
>
> >> +1 206.650.3740
>
> >>http://biosimilarity.blogspot.com
>
> --
> *Alex REPAIN*

Bill Venners

unread,
Sep 17, 2011, 10:18:57 AM9/17/11
to Daniel Sobral, Oscar Picasso, scala-user
Hi Daniel,

On Fri, Sep 16, 2011 at 2:04 PM, Daniel Sobral <dcso...@gmail.com> wrote:
> Will there be an early release PDF?
>

Yes, the "PrePrint" is what we call an early release PDF. We're just
getting started on prepping the first two chapters for the PrePrint
release, so it should be out soon.

Bill

Debasish Ghosh

unread,
Sep 17, 2011, 10:29:18 AM9/17/11
to Bill Venners, Daniel Sobral, Oscar Picasso, scala-user
sounds cool .. looking forward to it ..
--
Debasish Ghosh
http://manning.com/ghosh

Twttr: @debasishg
Blog: http://debasishg.blogspot.com
Code: http://github.com/debasishg

Will Crozier

unread,
Mar 10, 2012, 6:56:44 AM3/10/12
to tmo...@tmorris.net, scala-user
Thanks Tony, Rùnar and Paul for writing this book. It looks like v1 of the MEAP is available! I'm signing up for the MEAP and grabbing a copy now :-)

Best of luck with the rest of it!

On 26 July 2011 02:28, Tony Morris <tonym...@gmail.com> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everyone,
As promised, we will be writing a book on Functional Programming in
Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
Manning Publications and we hope to bring you all a book that can help
with many of the functional programming topics that we hear about often.

The three of us have come to appreciate the challenge of teaching many
of these topics and we are confident that we can take it on in the
form of a book for the general audience. We are all pretty excited
about this endeavour and we all hope to effectively conquer the
hurdles that present themselves along this well-trodden path of learning.

Stay tuned!

- --
Tony Morris
http://tmorris.net/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

Kenji Yoshida

unread,
Mar 10, 2012, 4:48:07 PM3/10/12
to scala...@googlegroups.com
Hi guys.
I bought the book and reading.
Maybe I found a mistake.

following sample code of chapter 5 page 12

    > def pair2(i: => Int) = { lazy val evaledI = i; (i, i) }
    > pair2 { println("hi"); 1 + 41 }
    hi
    val res0: (Int,Int) = (42,42)

should be 

    > def pair2(i: => Int) = { lazy val evaledI = i; (evaledI, evaledI) }
    > pair2 { println("hi"); 1 + 41 }
    hi
    val res0: (Int,Int) = (42,42)


isn't it ?

Daniel Sobral

unread,
Mar 10, 2012, 4:56:29 PM3/10/12
to Kenji Yoshida, scala...@googlegroups.com

Yes, otherwise "hi" would be printed three times.

Runar Bjarnason

unread,
Mar 11, 2012, 7:51:26 AM3/11/12
to scala...@googlegroups.com
Yes, that's definitely a typo. Thanks!

The place to post mistakes when you find them is probably on the forum for the book instead of the Scala mailing lists :)

http://www.manning-sandbox.com/forum.jspa?forumID=805

Dave

unread,
Mar 11, 2012, 8:27:08 AM3/11/12
to scala-user
>Yes, otherwise "hi" would be printed three times.

In reality two times. I think i in (i, i) is referenced and evaluated
only once.

scala> def pair2(i: => Int) = { lazy val evaledI = i; (i, i) }
pair2: (i: => Int)(Int, Int)

scala> pair2 { println("hi"); 1 + 41 }
hi
hi
res0: (Int, Int) = (42,42)


Tony Morris

unread,
Mar 11, 2012, 6:59:59 AM3/11/12
to scala...@googlegroups.com
Yeah you found a mistake. I make those occasionally, like this one time
in 1986...

Thanks for pointing it out. It was also pointed out on the manning forum.
http://www.manning-sandbox.com/thread.jspa?threadID=48881&tstart=0

Message has been deleted

Markus Jais

unread,
Mar 12, 2012, 6:35:49 AM3/12/12
to scala...@googlegroups.com
Very cool. This will definitely be on my reading list!

Markus


Von: bhericher <benoit....@interieur.gouv.fr>
An: scala-user <scala...@googlegroups.com>
Gesendet: 11:22 Montag, 12.März 2012
Betreff: [scala-user] Functional Programming in Scala

Hi,

The MEAP for "Functional Programming in Scala "is available!

http://www.manning.com/bjarnason/

Congratulations to the authors!

Benoit


Romain Sertelon

unread,
Mar 12, 2012, 7:16:17 AM3/12/12
to Markus Jais, scala...@googlegroups.com
Just bought it!

Can't wait to read it now :)
--
Romain SERTELON / BluePyth
Blog ~ @BluePyth ~ +BluePyth ~ Github ~ LinkedIn ~ DoYouBuzz

Daniel Sobral

unread,
Mar 12, 2012, 10:44:33 AM3/12/12
to Dave, scala-user
On Sun, Mar 11, 2012 at 09:27, Dave <dave.mah...@hotmail.com> wrote:
>>Yes, otherwise "hi" would be printed three times.
>
> In reality two times. I think i in (i, i) is referenced and evaluated
> only once.

Actually, no, it is referenced and evaluated twice. It's i in "lazy
val evaledI = i" that is never evaluated. But, otherwise, yes, two
times.

>
> scala> def pair2(i: => Int) = { lazy val evaledI = i; (i, i) }
> pair2: (i: => Int)(Int, Int)
>
> scala> pair2 { println("hi"); 1 + 41 }
> hi
> hi
> res0: (Int, Int) = (42,42)
>
>

--

Dave

unread,
Mar 13, 2012, 8:12:33 AM3/13/12
to scala-user
Indeed ;)
And I don't know why I thought that a tuple would cache (and I could
have tested that)

On 12 mrt, 15:44, Daniel Sobral <dcsob...@gmail.com> wrote:

Peter Walkley

unread,
Mar 14, 2012, 10:07:48 AM3/14/12
to scala...@googlegroups.com, tmo...@tmorris.net
For anyone wavering on this, there's a 50% off offer expiring today (14th March) on the MEAP at manning.com.  Use promotional code:  li50scala
 
Looks good so far - based on a very quick skim read.  I'll have time to look properly on holiday in a couple of weeks time.
 
-Peter
 
 

On Tuesday, July 26, 2011 2:28:44 AM UTC+1, Tony Morris wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everyone,
As promised, we will be writing a book on Functional Programming in
Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
Manning Publications and we hope to bring you all a book that can help
with many of the functional programming topics that we hear about often.

The three of us have come to appreciate the challenge of teaching many
of these topics and we are confident that we can take it on in the
form of a book for the general audience. We are all pretty excited
about this endeavour and we all hope to effectively conquer the
hurdles that present themselves along this well-trodden path of learning.

Stay tuned!

- --
Tony Morris
http://tmorris.net/

-----BEGIN PGP SIGNATURE-----


Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4uGEwACgkQmnpgrYe6r622uQCggYpMOxKss320lxZ9PWOw4q8U
teUAmwSWo5gdH/EuBoxOhqJHsA3YSDaf
=ChGJ
-----END PGP SIGNATURE-----


On Tuesday, July 26, 2011 2:28:44 AM UTC+1, Tony Morris wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everyone,
As promised, we will be writing a book on Functional Programming in
Scala. Paul Chiusano, Runar Bjarnason and me have just signed with
Manning Publications and we hope to bring you all a book that can help
with many of the functional programming topics that we hear about often.

The three of us have come to appreciate the challenge of teaching many
of these topics and we are confident that we can take it on in the
form of a book for the general audience. We are all pretty excited
about this endeavour and we all hope to effectively conquer the
hurdles that present themselves along this well-trodden path of learning.

Stay tuned!

- --
Tony Morris
http://tmorris.net/

-----BEGIN PGP SIGNATURE-----

Reply all
Reply to author
Forward
0 new messages