[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Objective C To Dylan
On Thursday, October 24, 2002, at 10:00 PM, P T Withington wrote:
> On Thursday, Oct 24, 2002, at 16:40 US/Eastern, Rob Myers wrote:
>
>> 2. Method Naming.
>>
>> Objective-C methods use named parameters. For example:
>>
>> [myObject param1: varA param2: varB];
>> [myObject param1: varC];
>
> Wouldn't the 'C++' way be to name the methods:
>
> myObject$param1¶m2 and myObject$param1?
This is true, and melange does something like this for struct field
names if you don't ask it to shadow structs.
I did consider param1:param2:( myObject, varA, varB );, but I'm looking
for something easy to remember and easy on the eyes for both Dylan and
Obj-C programmers. If I was hoovering up methods before writing rather
than just translating I could declare mangled names and map to them
with macros, but I don't want to have to stay up that late. :-)
- Rob.