-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.4.1
-
x86
-
windows_2000
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)
======================================================================
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)
======================================================================
- duplicates
-
JDK-8061408 Add support for verbatim string literals
-
- Closed
-