Re: [swift-corelibs-dev] Locale formatting (UAMeasureFormat)

2016-01-05 Thread Philippe Hausler via swift-corelibs-dev
Length, Energy and Mass formatters should definitely use the ICU backing. It might be a good idea to funnel them all into one unit formatter access point. I personally find it is sometimes easier to interface to C APIs in C and expose them back up as simple funnel methods but it depends on which

[swift-corelibs-dev] Locale formatting (UAMeasureFormat)

2016-01-05 Thread Johan Jensen via swift-corelibs-dev
I was having a quick look at implementing some of the not-yet-implemented formatters but quickly realized that some of them are highly locale dependent. After a quick look I found uameasureformat.h

Re: [swift-corelibs-dev] #if __CORELIBS_FOUNDATION__

2016-01-05 Thread Tony Parker via swift-corelibs-dev
Hi Drew, > On Jan 5, 2016, at 12:08 AM, Drew Crawford wrote: > > >> On Jan 4, 2016, at 3:09 PM, Tony Parker > > wrote: >> >> In this particular case, how would you use the #if? Any should be source >> compatible with AnyObject, since Any is a superset of AnyOb

Re: [swift-corelibs-dev] NSRegularExpression implementation

2016-01-05 Thread Philippe Hausler via swift-corelibs-dev
NSRegularExpression is backed by ICU’s uregex; there is no regex support in CF however since ICU is a pretty involved C API it would not be un-reasonable to create an accessor API to make certain behaviors easier to deal with in swift. > On Jan 4, 2016, at 8:58 PM, Lukas Stabe via swift-corelibs

Re: [swift-corelibs-dev] #if __CORELIBS_FOUNDATION__

2016-01-05 Thread Drew Crawford via swift-corelibs-dev
> On Jan 4, 2016, at 3:09 PM, Tony Parker wrote: > > In this particular case, how would you use the #if? Any should be source > compatible with AnyObject, since Any is a superset of AnyObject, right? Well I don't know what you mean by "compatible" but the thing about strongly typed languages