Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #34001

Re: javascript

From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: javascript
Date 2016-03-16 20:36 -0400
Organization Aioe.org NNTP Server
Message-ID <nccu6r$vrc$1@gioia.aioe.org> (permalink)
References <be10265d-6a71-48b7-9fc5-06992d99b8cd@googlegroups.com> <ncbo3r$1ke$1@dont-email.me> <JavaScript-20160316151327@ram.dialup.fu-berlin.de>

Show all headers | View raw


On 3/16/2016 10:14 AM, Stefan Ram wrote:
> Rhino <no_offline_contact@example.com> writes:
>> Despite the similarity of names, Java and Javascript are entirely
>> different languages and have nothing to do with one another.
>
>    When Brendan Eich designed JavaScript, he was told by his
>    superiors that the language must »look like Java«.
>
>    Every instance of Java SE contains a JavaScript interpreter,
>    this means, Java can be scripted with JavaScript.
>
>    Java and JavaScript are trademarks both owned by the same
>    company.
>
>    This is a valid Java statement in Java SE:
>
> if( "x" instanceof String )Math.exp( 2 );
>
>    This is a valid JavaScript statement in Firefox:
>
> if( "x" instanceof String )Math.exp( 2 );
>
>    What is the meaning of »x has nothing to do with y«?

That they are distinct within their domain.

The Java language and the Java language are distinct from each
other.

Different syntax. Different semantics. Different tools. Different
standardization and vendor context. Mostly different usage.

Obviously they share some things. But most programming languages
share concepts with other programming languages. Good features
(and occasionally not so good features) get copied.

I am sure that Gosling must have talked about C++ as influencing
Java (at least on what not to include).

for(int i = 0; i < 10; i++)

is valid in both Java and C++.

James Gosling and Bjarne Stroustrup both have beards, wear glasses
and live in the US.

But Java and C++ are still completely different languages.

Arne




Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

javascript Yogesh Sati <yogeshsati537@gmail.com> - 2016-03-16 06:35 -0700
  Re: javascript Rhino <no_offline_contact@example.com> - 2016-03-16 09:49 -0400
    Re: javascript Rhino <no_offline_contact@example.com> - 2016-03-16 10:51 -0400
      Re: javascript Rhino <no_offline_contact@example.com> - 2016-03-16 11:43 -0400
        Re: javascript Eric Douglas <e.d.programmer@gmail.com> - 2016-03-16 10:16 -0700
      Re: javascript Arne Vajhøj <arne@vajhoej.dk> - 2016-03-16 20:26 -0400
    Re: javascript Arne Vajhøj <arne@vajhoej.dk> - 2016-03-16 20:36 -0400
      Re: javascript Arne Vajhøj <arne@vajhoej.dk> - 2016-03-16 21:28 -0400
        Re: javascript Arne Vajhøj <arne@vajhoej.dk> - 2016-03-16 22:00 -0400
          Re: javascript Arne Vajhøj <arne@vajhoej.dk> - 2016-03-16 22:03 -0400

csiph-web