Talk:Rhino (JavaScript engine): Difference between revisions

Content deleted Content added
Ambiguous: new section
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags
Line 19:
The second example is buggy: At EOF, S.readLine() will return null, so S.readLine().toUpperCase() throws an exception. better:
 
<sourcesyntaxhighlight lang="javascript">
// The same as: import java.io.*;
importPackage(java.io);
Line 34:
if (s) System.out.println(s.toUpperCase());
}
</syntaxhighlight>
</source>
-- Shouldn't this be sufficient (and more readable):
<sourcesyntaxhighlight lang="javascript">
// The same as: import java.io.*;
importPackage(java.io);
Line 49:
System.out.println(s.toUpperCase());
}
</syntaxhighlight>
</source>
[[User:Socramus|Socramus]] ([[User talk:Socramus|talk]]) 14:41, 22 April 2010 (UTC)