Invocations (was: How to implement tab order?)

R

Roedy Green

Similar to the notation we use today, if we were using Python. if(){}
can be replaced with if and appropriate whitespace (indentation).
Parentheses for bracketing are still needed, but then they are in Java
as well.

You can get rid of the () by putting then after the condition.

if a > b
then x = b
else x = a


You might use a syntax more like the ternary if:

e.g.

a > b
? x = b
: x = a

To get rid of the need for semicolons, if you stopped thinking of a
program as an ASCII stream, you could use the notion one-statement =
one line, where the line is sometimes dynamically and automatically
wrapped when the window is not wide enough. You would use some
convention such as alternating stripe pastel backgrounds to show line
demarcations.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top