The Artima Developer Community
Sponsored Link

Programming in Scala Forum
Structural Subtyping Index Entry

2 replies on 1 page. Most recent reply: Mar 17, 2009 10:54 AM by Randall Schulz

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Randall Schulz

Posts: 3
Nickname: 57509
Registered: Aug, 2008

Structural Subtyping Index Entry Posted: Mar 6, 2009 5:22 PM
Reply to this message Reply
Advertisement
Hi,

Why does the index entry for "Structural Subtyping" refer to http://booksites.artima.com/programming_in_scala ? I see the tiny example there, but that hardly constitutes coverage of the topic. Will there be a treatment of structural subtyping there at some point?

Oddly enough, following that "link" answered my question from yesterday (where's the book source code and errata list), but raises another: When will the errata be made available?


Randall Schulz


SiewKhuan Chuah

Posts: 3
Nickname: siewzq
Registered: Jan, 2002

Re: Structural Subtyping Index Entry Posted: Mar 17, 2009 10:37 AM
Reply to this message Reply
Hi Randall,

> Why does the index entry for "Structural Subtyping" refer
> to http://booksites.artima.com/programming_in_scala ? I
> see the tiny example there, but that hardly constitutes
> coverage of the topic. Will there be a treatment of
> structural subtyping there at some point?
>
Yes, we should flesh that out. I just put a placeholder up there for the time being. Basically the reason I put that in the index was so that people looking up structural subtyping wouldn't think we forgot to index it. Rather, the decision was made to not include it in the book. So instead I want to flesh out the description on the resources page. I have used structural subtyping in ScalaTest, so if you want some examples you can look at the source code, which is distributed in the zip file:

http://www.artima.com/scalatest

I use it so you can say object should have length (7) on any object that conforms to one of the structural types:


{ def length: Int }
{ def getLength(): Int }
{ def length(): Int }


Same for object should have size (7) .

> Oddly enough, following that "link" answered my question
> from yesterday (where's the book source code and errata
> list), but raises another: When will the errata be made
> available?
>
Sorry the errata app has been ready for a couple weeks but I haven't had time to deploy it. I should have it deployed very soon.

Randall Schulz

Posts: 3
Nickname: 57509
Registered: Aug, 2008

Re: Structural Subtyping Index Entry Posted: Mar 17, 2009 10:54 AM
Reply to this message Reply
Hi, Siew,

Thanks for the reply. In the interim, I had an exchange on #scala that got me up-to-speed with structural types.

Will you post a notice somewhere I can watch announcing the deployment of the errata app?


Randall Schulz

Flat View: This topic has 2 replies on 1 page
Topic: Silverlight or ASPX ? Previous Topic   Next Topic Topic: Examples & Errata?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use