FAQ
*** Submitted as
http://code.google.com/p/go/source/detail?r=600708342ddd ***

exp/locale/collate: changed API to allow access to different locales
through New(),
instead of variables. Several reasons:
- Encourage users of the API to minimize the number of creations and
reuse Collate objects.
- Don't rule out the possibility of using initialization code for
collators. For some locales
it will be possible to have very compact representations that can be
quickly expanded
into a proper table on demand.
Other changes:
- Change name of root* vars to main*, as the tables are shared between
locales.
- Added Locales() method to get a list of supported locales.

R=r
CC=golang-dev
http://codereview.appspot.com/6498107


http://codereview.appspot.com/6498107/

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-dev @
categoriesgo
postedSep 14, '12 at 10:10a
activeSep 14, '12 at 11:23a
posts2
users2
websitegolang.org

2 users in discussion

Mpvl: 1 post Rogpeppe: 1 post

People

Translate

site design / logo © 2021 Grokbase