Re: [PATCH 1/2] userdiff: support C# async methods and correct C# keywords

2014-06-07 Thread Steve Hoelzer
On Fri, Jun 6, 2014 at 12:34 PM, Junio C Hamano wrote: > Steve Hoelzer writes: > >> instanceof() is listed as keywords, but there is no such thing (it is >> in Java, though); in C# we use typeof(), 'is', and 'as for similar >> purposes > > You would need to balance the quotes around "as" ;-) Ind

Re: [PATCH 1/2] userdiff: support C# async methods and correct C# keywords

2014-06-06 Thread Junio C Hamano
Steve Hoelzer writes: > On Thu, Jun 5, 2014 at 5:59 PM, Junio C Hamano wrote: >> Sup Yut Sum writes: >> >>> async is in C# 5.0 >>> foreach is in C# 1.0 >> >>> instanceof is in Java. The similar keywords are typeof, is, as in C# 1.0 >> >> This one made me read it twice, until I realized you mean

Re: [PATCH 1/2] userdiff: support C# async methods and correct C# keywords

2014-06-06 Thread Steve Hoelzer
On Thu, Jun 5, 2014 at 5:59 PM, Junio C Hamano wrote: > Sup Yut Sum writes: > >> async is in C# 5.0 >> foreach is in C# 1.0 > >> instanceof is in Java. The similar keywords are typeof, is, as in C# 1.0 > > This one made me read it twice, until I realized you meant > > instanceof() is listed a

Re: [PATCH 1/2] userdiff: support C# async methods and correct C# keywords

2014-06-05 Thread Junio C Hamano
Sup Yut Sum writes: > async is in C# 5.0 > foreach is in C# 1.0 > instanceof is in Java. The similar keywords are typeof, is, as in C# 1.0 This one made me read it twice, until I realized you meant instanceof() is listed as keywords, but there is no such thing (it is in Java, though);

[PATCH 1/2] userdiff: support C# async methods and correct C# keywords

2014-06-01 Thread Sup Yut Sum
async is in C# 5.0 foreach is in C# 1.0 instanceof is in Java. The similar keywords are typeof, is, as in C# 1.0 default, try are in C# 1.0 Signed-off-by: Sup Yut Sum --- userdiff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/userdiff.c b/userdiff.c index fad52d6..96e