// Program
log("
Hello,
I'm a multiline "raw" string
");
// Prints:
Hello,
I'm a multiline "raw" string
These strings have no problems of their siblings in other languages:
- No need for any special termination symbol/sequence - it's done by indentation.
- Source code indentation is not included in the string.
- Additional indentation can be added in the string to help formatting the output.
- Line end encoding is controlled by developer. It doesn't depend on source code formatting. Make it CR, LF or any combinations.
- Extra indentation, can go in form of tabs or spaces, this is also under developer's control.
- Argentum also takes in account such peculiar details as last line endings and indentations.
More examples and details are here: multiline-string-constants
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.