CnPack Forum


 
Subject: Suggestion: Block lines (if then, begin end)
jac2jac2
新警察
Rank: 1



UID 40771
Digest Posts 0
Credits 11
Posts 3
点点分 11
Reading Access 10
Registered 2008-8-11
Status Offline
Post at 2008-9-5 18:13  Profile | Blog | P.M. 
Suggestion: Block lines (if then, begin end)

D7.
I think the block lines are amazing, they really help.
The only time the fall short is when you have an if then else, where the else element is a single statement. Normally indentation ensures it is obvious that the next line after the else statement is always executed.  It would be good if the line could extend to the end of that else statement, to make it obvious.
e.g.
|if something then
|  do
|else
| do something else;
Carry on

I hope that makes sense.

As always, thanks for a great package.
Top
jac2jac2
新警察
Rank: 1



UID 40771
Digest Posts 0
Credits 11
Posts 3
点点分 11
Reading Access 10
Registered 2008-8-11
Status Offline
Post at 2008-9-5 18:17  Profile | Blog | P.M. 
example.


Image Attachment: [example] 2008-09-05_1058.png (2008-9-5 18:17, 7.28 K)

Top
Passion (LiuXiao)
管理员
Rank: 9Rank: 9Rank: 9


UID 359
Digest Posts 19
Credits 6838
Posts 3591
点点分 6838
Reading Access 102
Registered 2004-3-28
Status Offline
Post at 2008-9-5 20:31  Profile | Blog | P.M. 
Oh, our lines now only process to the keywords, no analysis to the clauses between keywords.

If add this function, it will changes a lot in our code for our design limitation.

And if the clause after else is included, how about the one after "if then"? And while do, for do? I think it brings much change to our CnWizards.
Top
 




All times are GMT++8, the time now is 2024-11-22 06:14

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.0.0  © 2001-2006 Comsenz Inc.
Processed in 0.008170 second(s), 10 queries , Gzip enabled

Clear Cookies - Contact Us - CnPack Website - Archiver - WAP