[nem-en] out / ref

Ivan A Eryshov ivan.eryshov at gmail.com
Thu Sep 28 06:17:47 CEST 2006


On 28/09/06, Igor Tkachev <it at rsdn.ru> wrote:
> > Any suggestions what to use instead of _ in for partial application?
>
> I would not change anything. It does not look confusing at all.
> I think the '_' was a great find. It's short, clear, means not
> important or substitution. Even if it does have a little bit different
> meaning depending on context, it's OK.
>
> Lets take for example the ':' character in C#:
>
> class A : B
> where T : B
> case 1 : break;
> a == null? 0 : 1;

All these cases are completely different. Let's imagine other example:

int i = 2^2; - this will be square of 2
double d = 2.0^2; - this will be square root of 2

I.e. the same symbol for not the same operations in almost the same
expressions (which differ in only the type of operands).
I understand that my example is exaggerated, but it shows what
situation I beware of.

-- 
Best Regards,
  Ivan A Eryshov.

-= RSDN forever! =-



More information about the devel-en mailing list