|
Re: Views: msg#00465lang.scala
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/
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: assorted beginner questions: 00465, Imam Tashdid ul Alam |
|---|---|
| Next by Date: | Implicit type conversion: 00465, Tony Morris |
| Previous by Thread: | Re: Viewsi: 00465, Burak Emir |
| Next by Thread: | Implicit type conversion: 00465, Tony Morris |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |