United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4810793 Add support for python's triple-quote mechanism for coding multi-line strings
JDK-4810793 : Add support for python's triple-quote mechanism for coding multi-line strings

Details
Type:
Enhancement
Submit Date:
2003-01-30
Status:
Closed
Updated Date:
2006-11-17
Project Name:
JDK
Resolved Date:
2006-11-17
Component:
specification
OS:
windows_2000
Sub-Component:
language
CPU:
x86
Priority:
P4
Resolution:
Duplicate
Affected Versions:
1.4.1
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

Description
Name: rmT116609			Date: 01/30/2003


DESCRIPTION OF THE PROBLEM :
Python support a triple-quote mechanism that makes it easy to embed multi-line strings in code.  For example:

public void testme()
{
 // Current java way
 String test =
 "Multi-line text gets added to the variable," + '\n'
 + "including carriage returns.  This process continues"
+ '\n'
 + "until and ending triple quote."

 // Triple-quote way
 test =
"""Multi-line text gets added to the variable,
including carriage returns.  This process continues
until and ending triple quote."""
}


(Review ID: 180128) 
======================================================================

                                    

Comments
EVALUATION

I'll take a look at Python and try and understand what the rules are.
They may or may not fit into Java, and it may not be worthwhile to do this,
but we'll see.

###@###.### 2003-01-30
                                     
2003-01-30



Hardware and Software, Engineered to Work Together