Pitfalls

Here are some of the idiosyncrasies of the language that will catch programmers by surprise if they’re accustomed to using a particular feature in C and assume that it will be supported in SymbEL.

  • Only one variable can be declared per line. The variable names may not be a comma-separated list.

  • There is no type float. All floating-point variables are type double.

  • Curly braces must surround all sequences of statements in control structures, including sequences of length one.

  • The comparators work with scalars, floats, and strings. Therefore, the logical comparison ("hello" == "world") is valid and in this case returns false.

  • If the result of an expression yields a floating value as an operand to the modulus operator, that value is converted ...

Get Sun Performance and Tuning: Java™ and the Internet, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.