• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Any way to avoid external parameter names?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any way to avoid external parameter names?


  • Subject: Re: Any way to avoid external parameter names?
  • From: Greg Parker <email@hidden>
  • Date: Mon, 27 Oct 2014 11:37:27 -0700

> 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



_______________________________________________

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


  • Follow-Ups:
    • Re: Any way to avoid external parameter names?
      • From: Rick Mann <email@hidden>
References: 
 >Any way to avoid external parameter names? (From: Rick Mann <email@hidden>)
 >Re: Any way to avoid external parameter names? (From: Quincey Morris <email@hidden>)
 >Re: Any way to avoid external parameter names? (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Question about accelerometer and OpenGL (ES)
  • Next by Date: Re: Any way to avoid external parameter names?
  • Previous by thread: Re: Any way to avoid external parameter names?
  • Next by thread: Re: Any way to avoid external parameter names?
  • Index(es):
    • Date
    • Thread