S
Scott M.
No. I was already aware that ASP.Net's version of JScript
(compiled, .Net-based, improved syntax) was significantly different to
the interpreted version.
Clarification; should read "... significantly different to the
interpreted version provided by Classic ASP".
- MM
Yes, JScript and JScript.NET are very different and the term that you use is
very important when distinguishing between the two. Quite frankly,
JScript.NET is not widely used at all as it makes little sense as to why
you'd want to use it. When you initially ask about JScript.NET's ability to
access/leverage all that the .NET Framework has to offer, you really should
have been asking whether using JScript.NET as your interface to the .NET
Framework will limit how robust your code can be...and the answer to that is
yes!
VB .NET and C# are the native .NET languages (well also C++ .NET, but that
is only used in special circumstances) and these are both very mature
languages with very rich feature sets. They can both be strongly typed at
the same time as providing mechanisms for dynamic typing (pretty cool
stuff!), which provides a whole level of code stability that JScript.NET
won't have. It's not about what aspects of the .NET Framework are
available, they are all available. But, the .NET Framework is not the
language. Think of it this way...no matter what language you speak
(English, French, Spanish, etc.), you use a stapler the same way...you place
the paper into it and press down with enough force as to make sure the
staple goes all the way through. My point being that to use the stapler
object does not rely on the language you are speaking. To use the .NET
Framework (and the CLR), the langauge you choose doesn't matter as far as
accessing the feature set of the Framework. However, ask different people
that speak different languages to describe the inner-workings of the
internal combustion engine and you will find that, in different languages,
there are not always word for word translations. Grammar, conjugation, and
pronounciation will all affect "how" you say what you are saying. Some
languages are more difficult to learn and understand because one word can
have different meanings and therefore some languages are better than others
for particular forms of speech.
Because JScript.NET is modled after JScript, which was modled after
JavaScript, which was modled after C, you'll find learning C# fairly simple
in the beginning, which is what most people who have a background in C style
languages do.
Lastly, when you move to using Visual Studio for your development, you'll
find that you may not want to embed your code into the .aspx page via a
<script> tag at all (inline coding) as this has compile and security
implications that you might not find desireable. Instead, you may wish to
choose a more popular "code-behind" pattern, where your code is written into
a completely different file from your client-side code.
In my opinion, JScript.NET offers nothing advantagous to .NET development
and will actually impede your coding.
-Scott