logo       

Re: Views: msg#00465

lang.scala

Subject: Re: Views

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

I'm not quite following this. You mean, that you can replace 'view' with
the term 'implicit def' throughout the literature without compromising
accuracy?

What do you mean by 'what if the view is the identity'? Do you mean the
identity natural transformation? (forall x. id x = x). If so, I still
don't see your point.

>
> 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/
>>
>>
>>
>>
>>
>
>


Tony Morris
http://tmorris.net/

Attachment: signature.asc
Description: OpenPGP digital signature

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise