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

Issue 10536105: Make Intl.message static (Closed)

Created:
8 years, 6 months ago by Emily Fortuna
Modified:
8 years, 6 months ago
Reviewers:
Alan Knight
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make Intl.message static Committed: https://code.google.com/p/dart/source/detail?r=8620

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Total comments: 3

Patch Set 3 : #

Total comments: 5

Patch Set 4 : #

Total comments: 3

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -20 lines) Patch
M lib/i18n/intl.dart View 1 2 3 4 5 chunks +48 lines, -11 lines 0 comments Download
M lib/i18n/intl_message.dart View 1 1 chunk +0 lines, -1 line 0 comments Download
M tests/lib/i18n/intl_message_test.dart View 1 2 3 4 chunks +18 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Emily Fortuna
8 years, 6 months ago (2012-06-11 21:44:18 UTC) #1
Alan Knight
https://chromiumcodereview.appspot.com/10536105/diff/1/lib/i18n/intl.dart File lib/i18n/intl.dart (right): https://chromiumcodereview.appspot.com/10536105/diff/1/lib/i18n/intl.dart#newcode55 lib/i18n/intl.dart:55: if (locale == '') locale = _getDefaultLocale(); This is ...
8 years, 6 months ago (2012-06-11 23:07:01 UTC) #2
Emily Fortuna
PTAL! (I'll actually write real tests when this actually does something) :-)
8 years, 6 months ago (2012-06-12 00:56:37 UTC) #3
Alan Knight
I tend to be in favour of writing tests even just to validate that the ...
8 years, 6 months ago (2012-06-12 17:47:20 UTC) #4
Alan Knight
I tend to be in favour of writing tests even just to validate that the ...
8 years, 6 months ago (2012-06-12 17:47:31 UTC) #5
Emily Fortuna
8 years, 6 months ago (2012-06-12 21:58:34 UTC) #6
Alan Knight
https://chromiumcodereview.appspot.com/10536105/diff/6004/lib/i18n/intl.dart File lib/i18n/intl.dart (right): https://chromiumcodereview.appspot.com/10536105/diff/6004/lib/i18n/intl.dart#newcode81 lib/i18n/intl.dart:81: return result; If I set the locale here temporarily, ...
8 years, 6 months ago (2012-06-13 00:52:32 UTC) #7
Emily Fortuna
responses to comments below. PTAL. https://chromiumcodereview.appspot.com/10536105/diff/6004/lib/i18n/intl.dart File lib/i18n/intl.dart (right): https://chromiumcodereview.appspot.com/10536105/diff/6004/lib/i18n/intl.dart#newcode81 lib/i18n/intl.dart:81: return result; On 2012/06/13 ...
8 years, 6 months ago (2012-06-13 01:27:48 UTC) #8
Alan Knight
https://chromiumcodereview.appspot.com/10536105/diff/6004/tests/lib/i18n/intl_message_test.dart File tests/lib/i18n/intl_message_test.dart (right): https://chromiumcodereview.appspot.com/10536105/diff/6004/tests/lib/i18n/intl_message_test.dart#newcode81 tests/lib/i18n/intl_message_test.dart:81: expect(Intl.withLocale('en-US', () => hello()), equals('Hello, world!')); On 2012/06/13 01:27:48, ...
8 years, 6 months ago (2012-06-13 01:34:58 UTC) #9
Emily Fortuna
8 years, 6 months ago (2012-06-13 01:46:13 UTC) #10
Alan Knight
https://chromiumcodereview.appspot.com/10536105/diff/13001/lib/i18n/intl.dart File lib/i18n/intl.dart (right): https://chromiumcodereview.appspot.com/10536105/diff/13001/lib/i18n/intl.dart#newcode75 lib/i18n/intl.dart:75: static String withLocale(String locale, Function msg_function_future) { "future" seems ...
8 years, 6 months ago (2012-06-13 15:37:09 UTC) #11
Alan Knight
Forgot to say that my comments were just quibbles, so lgtm.
8 years, 6 months ago (2012-06-13 15:53:10 UTC) #12
Emily Fortuna
8 years, 6 months ago (2012-06-13 17:24:04 UTC) #13
https://chromiumcodereview.appspot.com/10536105/diff/13001/lib/i18n/intl.dart
File lib/i18n/intl.dart (right):

https://chromiumcodereview.appspot.com/10536105/diff/13001/lib/i18n/intl.dart...
lib/i18n/intl.dart:75: static String withLocale(String locale, Function
msg_function_future) {
On 2012/06/13 15:37:09, Alan Knight wrote:
> "future" seems like a confusing suffix, since there's a language feature by
that
> name, but it's not what we're using.

Agreed. But what do you recommend instead? msg_function seemed like the best I
could come up with, you recommended against that. msg_function_promise or
msg_function_closure seem to be the only other names I can come up with them,
but both of those are strange for other reasons...?

Powered by Google App Engine
This is Rietveld 408576698