Re: Any way to avoid external parameter names?
Re: Any way to avoid external parameter names?
- Subject: Re: Any way to avoid external parameter names?
- From: Rick Mann <email@hidden>
- Date: Mon, 27 Oct 2014 11:44:26 -0700
I did: 18771081
> On Oct 27, 2014, at 11:37 , Greg Parker <email@hidden> wrote:
>
>
>> On Oct 24, 2014, at 8:31 PM, Rick Mann <email@hidden> wrote:
>>
>> Anyway, once I realized what was going on, I was able to get the behavior I wanted. It's not perfect, because now I have to declare my function types like this to get some documentation in them. I want to document at the function declaration, not at every call site.
>>
>> typealias SyncRequestHandler = (/*request:*/ HTTPMessage) -> ResponseTuple;
>> typealias SendResponseFunc = (/*responseData:*/ NSData?, /*responseHeaders:*/ HTTPHeaders?) -> ();
>>
>> You can't prefix these names with "_" in the current compiler.
>
> Did you file a bug report? Allowing `_` to suppress the names here sounds like a good idea to me.
>
>
> --
> Greg Parker email@hidden Runtime Wrangler
>
>
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden