[swift-evolution] [Idea] Trailing Multi-Line String Literal

Gor Gyolchanyan gor at gyolchanyan.com
Thu Jun 15 04:54:27 CDT 2017


Good day, swift evolution community!

I'll just get right to it...

Did anyone else beside me wished this was a thing?

func parse(allowSomeBehavior: Bool = true, source: String) {
	// ...
}

parse(allowSomeBehavior: false) """
	This is a source string
	that contains a number of lines of text
	which is passed to the function `parse`
	"""

parse """
	The exact same thing as above
	except no other parameters are specified
	"""



More information about the swift-evolution mailing list