Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Issue 11236008: Start a whitelist of methods those optionals should be treated as named formals in dart:html. (Closed)

Created:
8 years, 2 months ago by Anton Muhin
Modified:
8 years, 2 months ago
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Start a whitelist of methods those optionals should be treated as named formals in dart:html. R=blois@google.com,efortuna@google.com,podivilov@chromium.org,sra@google.com,vsm@google.com Committed: https://code.google.com/p/dart/source/detail?r=13925

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -47 lines) Patch
M lib/html/scripts/generator.py View 2 chunks +7 lines, -1 line 3 comments Download
M tests/html/fileapi_test.dart View 5 chunks +0 lines, -46 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Anton Muhin
8 years, 2 months ago (2012-10-19 19:06:11 UTC) #1
blois
lgtm
8 years, 2 months ago (2012-10-19 19:40:45 UTC) #2
Emily Fortuna
lgtm https://codereview.chromium.org/11236008/diff/1/lib/html/scripts/generator.py File lib/html/scripts/generator.py (right): https://codereview.chromium.org/11236008/diff/1/lib/html/scripts/generator.py#newcode36 lib/html/scripts/generator.py:36: nit: probably don't need two lines of whitespace ...
8 years, 2 months ago (2012-10-19 19:48:34 UTC) #3
vsm
https://codereview.chromium.org/11236008/diff/1/lib/html/scripts/generator.py File lib/html/scripts/generator.py (right): https://codereview.chromium.org/11236008/diff/1/lib/html/scripts/generator.py#newcode39 lib/html/scripts/generator.py:39: ]) One thing that worries me about named params ...
8 years, 2 months ago (2012-10-19 19:53:28 UTC) #4
Emily Fortuna
good point. sgtm
8 years, 2 months ago (2012-10-19 19:57:59 UTC) #5
Anton Muhin
8 years, 2 months ago (2012-10-23 13:59:52 UTC) #6
https://codereview.chromium.org/11236008/diff/1/lib/html/scripts/generator.py
File lib/html/scripts/generator.py (right):

https://codereview.chromium.org/11236008/diff/1/lib/html/scripts/generator.py...
lib/html/scripts/generator.py:39: ])
That's true, but my feeling is the chance of parameter name change is roughly
the same (or even less) as of method/interface.

Would you mind if we live for some time with names from IDLs and if we find them
not stable enough, resort to separate database for names?

On 2012/10/19 19:53:28, vsm wrote:
> One thing that worries me about named params is that we get the names from IDL
> and they're practically comments there - no semantic value in JS.  They might
> change arbitrarily.
> 
> Perhaps we can handle that by explicitly listing the optional params here with
a
> map from IDL parameter name to Dart name.  If the IDL name changes, fail and
> force us to fix us here.  This would be a way to keep Dart names stable.
> 
> What do you guys think?

Powered by Google App Engine
This is Rietveld 408576698