Hi ,
I am following backslash ('\') as continuation of line as per the coding guidelines.Is there any other character to be used as continuation of line?
Thanks in advance
PSB
3 3405
Hi ,
I am following backslash ('\') as continuation of line as per the coding guidelines.Is there any other character to be used as continuation of line?
Thanks in advance
PSB
One thing that I use often: Inside parens all you need is whitespace: - def FuncWithLotsOfArgs(a, b, c, d, e, f, g):
-
pass
-
-
FuncWithLotsOfArgs(arg1WithReallyLongName, arg2WithReallyLongName, arg3WithReallyLongName,
-
arg4WithReallyLongName, arg5WithReallyLongName, arg6WithReallyLongName,
-
arg7WithReallyLongName)
- elif (strTemp[:6]=='RECTAN' or strTemp[:6]=='TRIANG or \
-
strTemp[:4]== 'LINE' or strTemp[:4]== 'CIRC' or strTemp[:5]== 'POLYG' ):
One thing that I use often: Inside parens all you need is whitespace: - def FuncWithLotsOfArgs(a, b, c, d, e, f, g):
-
pass
-
-
FuncWithLotsOfArgs(arg1WithReallyLongName, arg2WithReallyLongName, arg3WithReallyLongName,
-
arg4WithReallyLongName, arg5WithReallyLongName, arg6WithReallyLongName,
-
arg7WithReallyLongName)
the above condition check is correct,to sperate with "/" backslash as the line seperator or continuation of line
- elif (strTemp[:6]=='RECTAN' or strTemp[:6]=='TRIANG or \
-
strTemp[:4]== 'LINE' or strTemp[:4]== 'CIRC' or strTemp[:5]== 'POLYG' ):
the above condition check is correct,to sperate with "/" backslash as the line seperator or continuation of line
Any way that works is correct. The curse and the blessing of a language that lets you do the same thing in different ways.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Jasper Recto |
last post by:
I have a statement that I can't seem to use Line Continuations on it:
Progress = "V:\PROGRESS\bin\prowin32.exe V:\VANTAGE\db\vantage.db_ -ininame
V:\VANTAGE\vantage.ini -pf...
|
by: Don Leckie |
last post by:
Hi,
I've searched all my Java books ans newsgroup archives and found nothing.
Once I thought that I saw a character at the end of a line allowed a String
literal to span multiple lines.
I...
|
by: Sandra-24 |
last post by:
I'm not sure how complex this is, I've been brainstorming a little, and
I've come up with:
If the previous line ended with a comma or a \ (before an optional
comment)
That's easy to cover...
|
by: lophiomys |
last post by:
Hi,
I have an extra long attribute value, and can't find a way to wrap it
over
several short lines in my text editor, so that it stays nicely human
readable.
Is there a line-continuation...
|
by: Don |
last post by:
Hi,
I have an SQL string that I'm trying to code into VBA and it's giving
me trouble. I tried to use line continuation and concatenation as best
I can to make it work. However, I'm stuck. I know...
|
by: =?Utf-8?B?RXJpY2E=?= |
last post by:
I am trying to dynamically create a javascript link. But, I get the following
error:
BC32017: Comma, ')', or a valid expression continuation expected.
Here is the line I try creating the...
|
by: Russ P. |
last post by:
I've always appreciated Python's lack of requirement for a semi-colon
at the end of each line. I also appreciate its rules for automatic
line continuation. If a statement ends with a "+", for...
|
by: =?Utf-8?B?S2hhcnRvdW0=?= |
last post by:
Know somebody out there will laugh a this but i have the following function
that opens a certain form based on the password but because there are so many
forms, i am getting the 'too many...
|
by: MLH |
last post by:
I don't understand why (a) works and compiles but (b) does not...
(a)
Set qdfTemp = .CreateQueryDef("", _
"SELECT * FROM Employees")
(b)
Set qdfTemp = .CreateQueryDef("", _
"SELECT...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |