[Implemented] Long Line Split

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
bembulak
Enthusiast
Enthusiast
Posts: 575
Joined: Mon Mar 06, 2006 3:53 pm
Location: Austria

Re: Long Line Split

Post by bembulak »

Just out of curiosity can anyone name a language which does not use an end of line character and allows multiple lines of text across several lines?
Python!

Code: Select all

normalstring = "I'm a string"    #string in normal quotes
anothernormalstring = 'Me too!'    #string in single quotes, less "noise"
aVeryLongString = """This String starts here and
continues her in the next line.

Ah, the string does not end here! I'ts going on and on. Since it's triple-quoted,
I can use normal "quotes" here and 'here'!
Cool!"""

# Statement over several lines:
myList = (for thing in thinglist \
if thing == "list comprehension")

# Joined statements:
print mylist : print "done"
cheers,

bembulak
Little John
Addict
Addict
Posts: 4777
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: Long Line Split

Post by Little John »

maker wrote:A small point, perhaps, but a point nevertheless.
I agree to this point. And let's bear in mind, that many a little makes a mickle. :-)

Regards, Little John
Post Reply