Changes between Version 6 and Version 7 of StringRestructuring

Show
Ignore:
Timestamp:
05/07/09 13:18:28 (7 months ago)
Author:
sukyoungryu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StringRestructuring

    v6 v7  
    1919 * Although {{{JavaString}}} is a subtype of {{{String}}}, {{{List⟦JavaString⟧}}} is ''not'' a subtype of {{{List⟦String⟧}}}.  This may bite you.   For example in  
    2020{{{ 
     21#!fss 
    2122    x : String 
    2223    ... 
    2324    x := "hello" 
    2425    ... 
    25     ⟨ x ⟩ 
     26    <| x |> 
    2627 
    2728}}} 
     
    2930  If this matters, the fix is to put an explicit type in the ''List'' constructor, i.e., to write 
    3031{{{ 
    31     ⟨⟦String⟧ x ⟩ 
     32#!fss 
     33    <|[\String\] x |> 
    3234}}} 
    3335  Yes, I know that it's ugly.  I believe that static type inference will make this go away. 
     
    4446 
    4547{{{ 
     48#!fss 
    4649   stdOut: Writer  
    4750   stdErr: Writer