Ambiguity of a phrase in the Java specification documentation
I have met the following text in the Java Specification
Lines are terminated by the ASCII characters CR, or LF, or CR LF.
The two characters CR immediately followed by LF are counted as one line terminator, not two.
It is unclear whether the bolded text means the following combination of the line termination symbols CR LF CR LF or just CR CR LF.
meaning phrases meaning-in-context ambiguity
|
show 8 more comments
I have met the following text in the Java Specification
Lines are terminated by the ASCII characters CR, or LF, or CR LF.
The two characters CR immediately followed by LF are counted as one line terminator, not two.
It is unclear whether the bolded text means the following combination of the line termination symbols CR LF CR LF or just CR CR LF.
meaning phrases meaning-in-context ambiguity
It means CR LF.
– Keep these mind
5 hours ago
It simply means CR LF. Two characters (bytes) with ASCII value 13 and 10, which together make a single line termination.
– Weather Vane
5 hours ago
1
No, because that is not what is meant. AFAIK, CR LF CR LF would be counted as two line terminators.
– Keep these mind
5 hours ago
1
Let me make it clear using brackets: "The two characters (CR immediately followed by LF) are counted as one line terminator, not two."
– Keep these mind
5 hours ago
1
It's not very well written.
– Weather Vane
5 hours ago
|
show 8 more comments
I have met the following text in the Java Specification
Lines are terminated by the ASCII characters CR, or LF, or CR LF.
The two characters CR immediately followed by LF are counted as one line terminator, not two.
It is unclear whether the bolded text means the following combination of the line termination symbols CR LF CR LF or just CR CR LF.
meaning phrases meaning-in-context ambiguity
I have met the following text in the Java Specification
Lines are terminated by the ASCII characters CR, or LF, or CR LF.
The two characters CR immediately followed by LF are counted as one line terminator, not two.
It is unclear whether the bolded text means the following combination of the line termination symbols CR LF CR LF or just CR CR LF.
meaning phrases meaning-in-context ambiguity
meaning phrases meaning-in-context ambiguity
asked 6 hours ago
Vlad from MoscowVlad from Moscow
1269
1269
It means CR LF.
– Keep these mind
5 hours ago
It simply means CR LF. Two characters (bytes) with ASCII value 13 and 10, which together make a single line termination.
– Weather Vane
5 hours ago
1
No, because that is not what is meant. AFAIK, CR LF CR LF would be counted as two line terminators.
– Keep these mind
5 hours ago
1
Let me make it clear using brackets: "The two characters (CR immediately followed by LF) are counted as one line terminator, not two."
– Keep these mind
5 hours ago
1
It's not very well written.
– Weather Vane
5 hours ago
|
show 8 more comments
It means CR LF.
– Keep these mind
5 hours ago
It simply means CR LF. Two characters (bytes) with ASCII value 13 and 10, which together make a single line termination.
– Weather Vane
5 hours ago
1
No, because that is not what is meant. AFAIK, CR LF CR LF would be counted as two line terminators.
– Keep these mind
5 hours ago
1
Let me make it clear using brackets: "The two characters (CR immediately followed by LF) are counted as one line terminator, not two."
– Keep these mind
5 hours ago
1
It's not very well written.
– Weather Vane
5 hours ago
It means CR LF.
– Keep these mind
5 hours ago
It means CR LF.
– Keep these mind
5 hours ago
It simply means CR LF. Two characters (bytes) with ASCII value 13 and 10, which together make a single line termination.
– Weather Vane
5 hours ago
It simply means CR LF. Two characters (bytes) with ASCII value 13 and 10, which together make a single line termination.
– Weather Vane
5 hours ago
1
1
No, because that is not what is meant. AFAIK, CR LF CR LF would be counted as two line terminators.
– Keep these mind
5 hours ago
No, because that is not what is meant. AFAIK, CR LF CR LF would be counted as two line terminators.
– Keep these mind
5 hours ago
1
1
Let me make it clear using brackets: "The two characters (CR immediately followed by LF) are counted as one line terminator, not two."
– Keep these mind
5 hours ago
Let me make it clear using brackets: "The two characters (CR immediately followed by LF) are counted as one line terminator, not two."
– Keep these mind
5 hours ago
1
1
It's not very well written.
– Weather Vane
5 hours ago
It's not very well written.
– Weather Vane
5 hours ago
|
show 8 more comments
1 Answer
1
active
oldest
votes
Perhaps the following would have been less confusing in the specification ...
The following ASCII character sequences each act as one line terminator:
- CR
- LF
- CR LF
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "97"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fenglish.stackexchange.com%2fquestions%2f489232%2fambiguity-of-a-phrase-in-the-java-specification-documentation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Perhaps the following would have been less confusing in the specification ...
The following ASCII character sequences each act as one line terminator:
- CR
- LF
- CR LF
add a comment |
Perhaps the following would have been less confusing in the specification ...
The following ASCII character sequences each act as one line terminator:
- CR
- LF
- CR LF
add a comment |
Perhaps the following would have been less confusing in the specification ...
The following ASCII character sequences each act as one line terminator:
- CR
- LF
- CR LF
Perhaps the following would have been less confusing in the specification ...
The following ASCII character sequences each act as one line terminator:
- CR
- LF
- CR LF
answered 1 hour ago
k1erank1eran
18.8k63878
18.8k63878
add a comment |
add a comment |
Thanks for contributing an answer to English Language & Usage Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fenglish.stackexchange.com%2fquestions%2f489232%2fambiguity-of-a-phrase-in-the-java-specification-documentation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It means CR LF.
– Keep these mind
5 hours ago
It simply means CR LF. Two characters (bytes) with ASCII value 13 and 10, which together make a single line termination.
– Weather Vane
5 hours ago
1
No, because that is not what is meant. AFAIK, CR LF CR LF would be counted as two line terminators.
– Keep these mind
5 hours ago
1
Let me make it clear using brackets: "The two characters (CR immediately followed by LF) are counted as one line terminator, not two."
– Keep these mind
5 hours ago
1
It's not very well written.
– Weather Vane
5 hours ago