Ambiguity of a phrase in the Java specification documentation












0















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.










share|improve this question























  • 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
















0















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.










share|improve this question























  • 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














0












0








0








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.










share|improve this question














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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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



















  • 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










1 Answer
1






active

oldest

votes


















0














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







share|improve this answer























    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    0














    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







    share|improve this answer




























      0














      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







      share|improve this answer


























        0












        0








        0







        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







        share|improve this answer













        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








        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 1 hour ago









        k1erank1eran

        18.8k63878




        18.8k63878






























            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Paul Cézanne

            UIScrollView CustomStickyHeader Resize height generates problems when scroll is too fast

            Angular material date-picker (MatDatepicker) auto completes the date on focus out