Post Reply 
Support for comments /* ... */
02-25-2017, 12:25 AM (This post was last modified: 02-25-2017 12:29 AM by StephenG1CMZ.)
Post: #4
RE: Support for comments /* ... */
Changing the compiler to allow // comments on each line would be helpful, particularly when you have a long list of data

PlanetDistance:={
0.2,//Mercury
0.4,//Venus
1//AU

}
I
For function parameters, I have always liked the OPTIONAL ADA syntax for readability and avoidance of getting parameters confused, although for my own code I could remember the parameter sequence anyway without needing it:

TIMED(HOURS, MINS, SECS)
Return 60* ((60*hours)+mins)+secs;
END
...

Timed(hours=3,mins=2);

Timed(secs=1,mins=2);//the prefixes mean you don't need to remember which parameter is 1st

Timed(1,2,3); // the xxxx= is optional

I could imagine that syntax being useful when using a portable device with a small Screen makes looking up parameters difficult.

An alternative would be to have a way to search for user procedures and parameters, either within the editor (Find...), or by lookup within Help.

Stephen Lewkowicz (G1CMZ)
https://my.numworks.com/python/steveg1cmz
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Support for comments /* ... */ - StephenG1CMZ - 02-25-2017 12:25 AM



User(s) browsing this thread: 1 Guest(s)