groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel.Sun" <sun...@apache.org>
Subject About triple quoted string
Date Fri, 30 Mar 2018 13:03:42 GMT
Hi all,

    The old parser does not support code like '''str='abc'''' and
"""str="abc"""" and goes wrong, but the new parser Parrot supports them now.
The improvement conforms to "Least Surprise" principle IMO.

    Any thoughts?


Cheers,
Daniel.Sun




https://github.com/apache/groovy/commit/7e7b508c02bf35e72fca1efcb7cc0d8a4f25038a



--
Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html

Mime
View raw message