Awesome work and a worthwhile introduction to Dart. Thanks!
On Apr 18, 3:07 pm, Christian Grobmeier <
grobme...@gmail.com> wrote:
> My 2 cents: I think types are fine. Ppl probably look often from a js
> perspective on it. They might find it useful to see types (a new
> feature) here. For me as Java dev it is common, but others probably
> would like to see a good couple of examples with types. Letting them
> go is easier than having them.
>
>
>
>
>
>
>
>
>
> On Wed, Apr 18, 2012 at 10:55 PM, Seth Ladd <
sethl...@google.com> wrote:
> > I knew this would come up. :) Kathy and I bounced back and forth on this.
> > We felt that because many of these code samples are not in the context of a
> > function, and because type inference hasn't appear yet for the Editor, it
> > was better to use type annotations.
>
> > If people feel really strongly about this, we can of course take a pass
> > through the doc.
>
> > On Wed, Apr 18, 2012 at 1:48 PM, Bob Nystrom <
rnyst...@google.com> wrote:
>
> >> Better solution: get rid of the type annotations for those local variables
> >> completely. :) Just use "var" or "final".
>
> >> var pages = <String>{ // specify value type: String
>
> >> 'index.html':'Homepage', // (the key type is implicitly String)
> >> 'robots.txt':'Hints for web robots',
> >> 'humans.txt':'We are people, not machines' };
>
> >> - bob
>
> >> On Wed, Apr 18, 2012 at 1:21 PM, Kathy Walrath <
kat...@google.com> wrote:
>
> >>> Oh wait... you mean the type of the variable, not the type of the
> >>> literal... Oops. I'll fix that.
>
> >>> Thanks!
>
> >>> -k-
>
> >>> On Wed, Apr 18, 2012 at 1:20 PM, Kathy Walrath <
kat...@google.com> wrote:
>
> >>>> When I tested this example in Dart Editor a few days ago, it gave me an
> >>>> error if I used two types.
>
> >>>> -k-
>
> >>>> On Wed, Apr 18, 2012 at 1:11 PM, Ladislav Thon <
ladi...@gmail.com>