logo       

Re: Views: msg#00462

lang.scala

Subject: Re: Views

view should be replaced everywhere by implicit def.
added use of <%: what if the view is the identity?

On 1/29/07, Tony Morris < tmorris@xxxxxxxxxxx> wrote:
Referring to "A Tour of the Scala Programming Language" page 46, I get
the impression that 'Views' are a concept that is implemented with
implicit defs and implicit parameters. I also get the impression that
the special syntax (<%) is nothing more than syntactic sugar and
provides no additional benefit to the code with the implicit parameter.

Is this correct? If not, what additional value is a 'View' besides a
concept? What additional benefit do you get from using the <% syntax?

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







--
Burak Emir
Research Assistant / PhD Candidate
Programming Methods Group
EPFL, 1015 Lausanne, Switzerland
http://lamp.epfl.ch/~emir
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise