aboutsummaryrefslogtreecommitdiff
path: root/notes/multiline_strings.txt
blob: 04abdb8c53fcdda1233c37433405c128fcb20e9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

Long strings
============

Option 1: Only have normal "" strings

    String s = (
        "<html>\n"
        "<head>\n"
        )

Option 2: Have prefixed-line strings
Should the line ending be hard-coded to always be "\n"?
Line-based internet protocols (e.g. HTTP 1.x, SMTP) typically use "\r\n".

    String s = (
        |<html>
        |<head>
        )