OK, thanks everyone for the info.
So basically, no properties in JS, uh? Is that something we can expect for Unity 2.0?
So I guess that means that the other way around, C# isn’t slower, right? Or any other MSIL-language, like Boo? If that’s the case, why not use JScript.NET, or is it proprietary to Microsoft?
Sorry about all these ramblings, but I’m still undecided as to whether I should use C#, which I prefer, or JS, which the community seems to be using more: when in Rome, do as the Romans…
C# was my big favorite while coding for the web, but in a game environment where everything is much more dynamic and reflection is everywhere, I have to admit that JS and its type inference is a blast.
On a related subject, I think it’s really a pity that while using .NET, you don’t respect their upper/lower-case conventions, ie a variable is lower-case and a function upper, while in .NET the distinction is usually made on private/public.
I have no preference one way or the other, it’s just a convention, but having both mixed-up makes Unity code heterogeneous.
And the “Unity framework” isn’t even consistent between JS and C#:
JS:
var s : String;
C#:
public string s;
… String, string, what’s up with that?? C# in VS certainly accepts both!
So I guess you started with JS, then included .NET, but do you plan to homogenize this in 2.0, or later? I realize backward compatibility would take a hit, but I really think it would be better in the long run.
OK, I’m rambling again… I just like my code tidy!