Talk:Rhino (JavaScript engine)

This is an old revision of this page, as edited by SineBot (talk | contribs) at 22:08, 25 August 2015 (Signing comment by 198.217.64.22 - "Okay to list software that uses Rhino: new section"). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Latest comment: 10 years ago by 198.217.64.22 in topic Okay to list software that uses Rhino


Rhino was released to Mozilla Foundation in April 1998.

how is released to Mozilla, while Mozilla is founded 2003? http://en.wikipedia.org/wiki/Mozilla_Foundation — Preceding unsigned comment added by 91.216.253.212 (talk) 15:39, 20 January 2014 (UTC)Reply


Untitled

I believe that Rhino 1.6 implements JavaScript 1.6, but the Rhino doc I saw was not 100% consistent... Any clarification welcome, would be useful to mention language version implemented.

yeah iam currently working in that. i dont see mozilla documents are not really helpful in guiding devolpers. i need to know how to specify the src script attribute here in Rhino. does anyone know? —Preceding unsigned comment added by Rammyramkumar (talkcontribs) 09:35, 22 March 2008 (UTC)Reply

The second example is buggy: At EOF, S.readLine() will return null, so S.readLine().toUpperCase() throws an exception. better:

// The same as: import java.io.*;
importPackage(java.io);
importPackage(java.lang);

// "in" is a keyword in Javascript. 
// In Rhino you could query for an attribute using [] syntax: 
// Ex: System['out']
S = new BufferedReader( new InputStreamReader(System['in']) );
s = true;

while (s){
    s = S.readLine();
    if (s) System.out.println(s.toUpperCase());
}

-- Shouldn't this be sufficient (and more readable):

// The same as: import java.io.*;
importPackage(java.io);
importPackage(java.lang);

// "in" is a keyword in Javascript. 
// In Rhino you could query for an attribute using [] syntax: 
// Ex: System['out']
S = new BufferedReader( new InputStreamReader(System['in']) );

while (s = S.readLine()){
    System.out.println(s.toUpperCase());
}

Socramus (talk) 14:41, 22 April 2010 (UTC)Reply

Okay to list software that uses Rhino

Can we add a list of software solutions that use the Rhino JavaScript Engine? — Preceding unsigned comment added by 198.217.64.22 (talk) 22:07, 25 August 2015 (UTC)Reply