On Thu, Aug 30, 2012 at 10:06 AM, Boris Zbarsky <bzbar...@mit.edu> wrote:
> On 8/30/12 8:26 AM, Jonas Sicking wrote:
>>
>> What would
>>
>>    readonly attribute long? bin;
>>
>> compile into? If it compiles into something called GetBin then we'd
>> have a nice consistency that any getters for nullable types are named
>> GetX and any getters for non-nullable types are named X.
>
>
> I was going to make it GetBin after thinking about it, yeah.
>
> Specifically, it would be:
>
>   Nullable<int32_t> GetBin();
>
> So my specific logic was going to be like so:
>
>   if (fallible || retval_nullable || retval_outparam) {
>     // prepend "Get"
>
>   }

Sounds great!

/ Jonas
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to