473,387 Members | 1,520 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Continuation of line

440 256MB
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
Mar 6 '07 #1
3 3405
bartonc
6,596 Expert 4TB
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:
Expand|Select|Wrap|Line Numbers
  1. def FuncWithLotsOfArgs(a, b, c, d, e, f, g):
  2.      pass
  3.  
  4. FuncWithLotsOfArgs(arg1WithReallyLongName, arg2WithReallyLongName, arg3WithReallyLongName,
  5.                    arg4WithReallyLongName, arg5WithReallyLongName, arg6WithReallyLongName,
  6.                    arg7WithReallyLongName)
Mar 7 '07 #2
psbasha
440 256MB
Expand|Select|Wrap|Line Numbers
  1. elif (strTemp[:6]=='RECTAN' or strTemp[:6]=='TRIANG or \
  2.                           strTemp[:4]== 'LINE' or strTemp[:4]== 'CIRC' or strTemp[:5]== 'POLYG' ):
One thing that I use often: Inside parens all you need is whitespace:
Expand|Select|Wrap|Line Numbers
  1. def FuncWithLotsOfArgs(a, b, c, d, e, f, g):
  2.      pass
  3.  
  4. FuncWithLotsOfArgs(arg1WithReallyLongName, arg2WithReallyLongName, arg3WithReallyLongName,
  5.                    arg4WithReallyLongName, arg5WithReallyLongName, arg6WithReallyLongName,
  6.                    arg7WithReallyLongName)
the above condition check is correct,to sperate with "/" backslash as the line seperator or continuation of line
Mar 7 '07 #3
bartonc
6,596 Expert 4TB
Expand|Select|Wrap|Line Numbers
  1. elif (strTemp[:6]=='RECTAN' or strTemp[:6]=='TRIANG or \
  2.                           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.
Mar 7 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
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...
2
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...
5
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...
1
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...
13
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...
4
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...
6
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...
1
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...
3
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...
0
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,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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$) { } ...
0
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
0
BarryA
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...
0
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...
0
marktang
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,...
0
Oralloy
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,...
0
jinu1996
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.