Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-16 Thread Charles Srstka via swift-evolution
> On Feb 16, 2017, at 8:26 PM, Jon Shier via swift-evolution > wrote: > > 1. Is there anything developers can do today to use FileHandle safely in > Swift? There doesn’t seem to be, which seems to me to justify rather extreme > measures to fix the problem. As it stands right now FileHandle sho

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-16 Thread Jon Shier via swift-evolution
Having only recently run into issues with FileHandle throwing exceptions I can’t catch (luckily in a logging framework, so it’s not production code), I’ve only had the briefest of example of the frustration anyone trying to use it in Swift seriously must suffer. So there are probably tw

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-16 Thread Greg Parker via swift-evolution
Please take off-topic discussion elsewhere. Thank you. > On Feb 16, 2017, at 3:35 PM, Maxim Veksler via swift-evolution > wrote: > > An off-topic suggestion on radar bugs: > > Instead of closing as "dupe" why not call it "merged" into a known issue ? > > Same technical result but very differ

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-16 Thread Maxim Veksler via swift-evolution
An off-topic suggestion on radar bugs: Instead of closing as "dupe" why not call it "merged" into a known issue ? Same technical result but very different IMHO user experience that allow communicating to the reporter that his bug hasn't simply been wrote-off as a "plus 1" but was combined into a

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-16 Thread Zach Waldowski via swift-evolution
I can scarcely think of a less productive or more disrespectful thing to do in a thread chock full of Apple engineers actively trying to help you out. They're just humans, led by other humans. They can't divine the presence of issues, just like they can't divine the priorities of individual tasks w

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-16 Thread Aaron Crespo via swift-evolution
Just in case: https://www.openradar.appspot.com/radar?id=5046886029328384 On Wed, Feb 15, 2017 at 1:41 PM, Charles Srstka via swift-evolution < swift-evolution@swift.org> wrote: > On Feb 15, 2017, at 10:52 AM, Tony Parker > wrote: > > > Hi Charles, > > Have you happened to file a radar for Found

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-16 Thread Derrick Ho via swift-evolution
I agree that the current state of bug reporting through radars is unmotivating. We file these bug reports and have no idea if it even made a difference. After seeing this many times we just don't bother with bug reports. Sure I understand that internally apple uses duplicated issues to show how o

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-16 Thread Nick Keets via swift-evolution
I’m going OT here, but even though I understand your reasons, you need to acknowledge that for developers the rational thing to do is to not file radars at all. Any bug fix will get released at best a few months later and you can only actually take advantage of it a few years later (if you care ab

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-15 Thread Charlie Monroe via swift-evolution
> On Feb 16, 2017, at 7:18 AM, Kevin Nattinger via swift-evolution > wrote: > > >> On Feb 15, 2017, at 3:45 PM, Tony Parker via swift-evolution >> mailto:swift-evolution@swift.org>> wrote: >> >>> >>> On Feb 15, 2017, at 2:25 PM, Charles Srstka >> > wrote: >>

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-15 Thread Kevin Nattinger via swift-evolution
> On Feb 15, 2017, at 3:45 PM, Tony Parker via swift-evolution > wrote: > >> >> On Feb 15, 2017, at 2:25 PM, Charles Srstka > > wrote: >> >>> On Feb 15, 2017, at 3:11 PM, Itai Ferber >> > wrote: >>> >>> FYI, Tony is the manager of th

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-15 Thread Tony Parker via swift-evolution
> On Feb 15, 2017, at 2:25 PM, Charles Srstka wrote: > >> On Feb 15, 2017, at 3:11 PM, Itai Ferber > > wrote: >> >> FYI, Tony is the manager of the Foundation team. :) >> We care very much about making sure that the experience of using our >> framework is a positive o

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-15 Thread Charles Srstka via swift-evolution
> On Feb 15, 2017, at 3:11 PM, Itai Ferber wrote: > > FYI, Tony is the manager of the Foundation team. :) > We care very much about making sure that the experience of using our > framework is a positive one — the more Radars we get, the better we can > prioritize improving APIs that are not wor

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-15 Thread Itai Ferber via swift-evolution
FYI, Tony is the manager of the Foundation team. :) We care very much about making sure that the experience of using our framework is a positive one — the more Radars we get, the better we can prioritize improving APIs that are not working as well as they could be for our users. Even if the Rad

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-15 Thread Charles Srstka via swift-evolution
> On Feb 15, 2017, at 10:52 AM, Tony Parker wrote: > > Hi Charles, > > Have you happened to file a radar for Foundation that I can look up (for both > this and process)? > > We are working hard on making sure that our API is right for Swift, and areas > like this where we can make fairly triv

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-15 Thread Tony Parker via swift-evolution
Hi Charles, Have you happened to file a radar for Foundation that I can look up (for both this and process)? We are working hard on making sure that our API is right for Swift, and areas like this where we can make fairly trivial improvements are things that we can try to prioritize. As you sa

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-14 Thread Charles Srstka via swift-evolution
> On Feb 14, 2017, at 1:05 PM, Tony Parker wrote: > > Hi Charles, > > For both this and the Process proposal - why would we not just improve the > API on the existing types instead of renaming them? > > - Tony 1) The Objective-C Foundation isn’t open source. It’s now 14 years since the intro

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-14 Thread David Smith via swift-evolution
> On Feb 14, 2017, at 7:18 AM, Charles Srstka via swift-evolution > wrote: > > MOTIVATION: > > In Swift 3, NSFileHandle was renamed to FileHandle, making it the de facto > file handle class for use in Swift applications. Unfortunately, it’s not a > very good API. NSFileHandle supports no err

Re: [swift-evolution] Pitch: Replacement for FileHandle

2017-02-14 Thread Tony Parker via swift-evolution
> On Feb 14, 2017, at 7:18 AM, Charles Srstka via swift-evolution > wrote: > > MOTIVATION: > > In Swift 3, NSFileHandle was renamed to FileHandle, making it the de facto > file handle class for use in Swift applications. Unfortunately, it’s not a > very good API. NSFileHandle supports no err

[swift-evolution] Pitch: Replacement for FileHandle

2017-02-14 Thread Charles Srstka via swift-evolution
MOTIVATION: In Swift 3, NSFileHandle was renamed to FileHandle, making it the de facto file handle class for use in Swift applications. Unfortunately, it’s not a very good API. NSFileHandle supports no error reporting whatsoever, instead throwing Objective-C exceptions whenever something goes w