I am an experienced Java / C++ / Haskell programmer, but new to Scala
and Lift. I've been learning Scala for a few weeks and am just
starting to learn about Lift. This question may show more about my
ignorance of Scala that anything else, but I suspect I'm not alone so
here goes...:
In the code fragment for "Show" in "Starting with Lift" (as of March
28, 2009; version 4?), section 2.6, bottom of page 14 on to page 15:
What exactly are the functions 'bind', 'text' and 'select' here?
Where are they defined and why are they in scope here? Where would I
look in the API documentation to see the type signatures or understand
in detail what these functions do? How would I be able to answer any
of these questions on my own just by reading this code fragment?
I suspect the answer may involve implicit conversions or some other
bits of Scala magic that I simply don't understand yet, so I beg your
patience. If possible, a few breadcrumbs to explain non-obvious bits
of Scala the first time they are used might be helpful for Scala
newcomers, even just as a footnote.
Aside from all the meta-questions: are these functions part of Lift
or part of the Scala XML libs? It might be worth mentioning what
each of these functions do since they're pretty essential to
understanding this code fragment and I think this is the first
fragment in the doc that does something other than declare a class /
table or deal with config stuff.
-Antony
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Lift" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---