Hi German
> the book is complete related to language puzzles ? or also has some math/logic involved ?
The book presents examples of "puzzlers" in Scala - it's not a collection of programming problems or coding challenges, if that's what you were thinking. The definition of a "puzzler" that we use is a piece of code that you
think should behave one way, but that actually behaves quite differently, in an unexpected or counter-intuitive way.
For example, you might expect both of the following
println statements to throw a
NullPointerException. If you try the code, you may get a different result:
What we try to do in the book (and on
the Scala Puzzlers site) is to collect such code examples, describe how they actually behave and explain
why they do that. Understanding this is, we found, a fun way of challenging your own understanding of a language (Scala, in this case), and learning more about it.
One of
Nermin's comments in a different thread contains a link to a sample chapter, in case you'd like to take a look!
Regards
ap