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 |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Support for comments /* ... */ - compsystems - 02-24-2017, 05:36 PM
RE: Support for comments /* ... */ - toml_12953 - 02-24-2017, 07:51 PM
RE: Support for comments /* ... */ - compsystems - 02-24-2017, 07:58 PM
RE: Support for comments /* ... */ - StephenG1CMZ - 02-25-2017 12:25 AM
RE: Support for comments /* ... */ - compsystems - 02-26-2017, 03:39 PM
RE: Support for comments /* ... */ - Tim Wessman - 02-26-2017, 04:24 PM
|
User(s) browsing this thread: 2 Guest(s)