nikhilk / scriptsharp

Script# Project - a C# to JavaScript compiler, to power your HTML5 and Node.js web development.
http://scriptsharp.com
Other
659 stars 183 forks source link

Rename "RegularExpression" to "Regex" or "RegExp" #245

Open strygo opened 11 years ago

strygo commented 11 years ago

Given that the type is semantically very similar to .NET, I could make a case for naming Regex. However, similar to what's been done with "Date", naming it as its JavaScript equivalent would be fine too.

RegularExpression is annoyingly long. :)

nikhilk commented 11 years ago

Sounds reasonable - RegExp is probably a bit better (as I suspect there are probably some semantic differences lurking in here).

I should add it to my "cc" branch that is accumulating a little list of breaking changes. Or go ahead and make the change and I'll merge it in.