Question about the booleans in expl3 (of LaTeX3)











up vote
4
down vote

favorite












In expl3, there are the commands int_zero_new:N, tl_clear_new:N, str_clear_new:N , seq_clear_new:N, clist_clear_new:N, etc., but there is no similar command for the booleans (something like bool_false_new:N). Is there a reason ?










share|improve this question






















  • @TeXnician But isn't the objective to make a new one, or to set an existing false?
    – Manuel
    Nov 18 at 12:35










  • The objective of such a command would be to set the boolean to false... after creation of this boolean if it doesn't yet exist. Of course, it's very easy to write such a command. My question is: why such an command doesn't since it would be very similar to the existing commands for many other expl3 types of objects.
    – F. Pantigny
    Nov 18 at 12:52












  • The default value of a new boolean is false.
    – Ulrike Fischer
    Nov 18 at 14:52










  • @ Ulrike Fischer. Yes, I know but this is not my question.
    – F. Pantigny
    Nov 18 at 15:55






  • 2




    I think it would make sense to provide such a command.
    – Bruno Le Floch
    Nov 18 at 16:24















up vote
4
down vote

favorite












In expl3, there are the commands int_zero_new:N, tl_clear_new:N, str_clear_new:N , seq_clear_new:N, clist_clear_new:N, etc., but there is no similar command for the booleans (something like bool_false_new:N). Is there a reason ?










share|improve this question






















  • @TeXnician But isn't the objective to make a new one, or to set an existing false?
    – Manuel
    Nov 18 at 12:35










  • The objective of such a command would be to set the boolean to false... after creation of this boolean if it doesn't yet exist. Of course, it's very easy to write such a command. My question is: why such an command doesn't since it would be very similar to the existing commands for many other expl3 types of objects.
    – F. Pantigny
    Nov 18 at 12:52












  • The default value of a new boolean is false.
    – Ulrike Fischer
    Nov 18 at 14:52










  • @ Ulrike Fischer. Yes, I know but this is not my question.
    – F. Pantigny
    Nov 18 at 15:55






  • 2




    I think it would make sense to provide such a command.
    – Bruno Le Floch
    Nov 18 at 16:24













up vote
4
down vote

favorite









up vote
4
down vote

favorite











In expl3, there are the commands int_zero_new:N, tl_clear_new:N, str_clear_new:N , seq_clear_new:N, clist_clear_new:N, etc., but there is no similar command for the booleans (something like bool_false_new:N). Is there a reason ?










share|improve this question













In expl3, there are the commands int_zero_new:N, tl_clear_new:N, str_clear_new:N , seq_clear_new:N, clist_clear_new:N, etc., but there is no similar command for the booleans (something like bool_false_new:N). Is there a reason ?







expl3






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 18 at 12:18









F. Pantigny

48518




48518












  • @TeXnician But isn't the objective to make a new one, or to set an existing false?
    – Manuel
    Nov 18 at 12:35










  • The objective of such a command would be to set the boolean to false... after creation of this boolean if it doesn't yet exist. Of course, it's very easy to write such a command. My question is: why such an command doesn't since it would be very similar to the existing commands for many other expl3 types of objects.
    – F. Pantigny
    Nov 18 at 12:52












  • The default value of a new boolean is false.
    – Ulrike Fischer
    Nov 18 at 14:52










  • @ Ulrike Fischer. Yes, I know but this is not my question.
    – F. Pantigny
    Nov 18 at 15:55






  • 2




    I think it would make sense to provide such a command.
    – Bruno Le Floch
    Nov 18 at 16:24


















  • @TeXnician But isn't the objective to make a new one, or to set an existing false?
    – Manuel
    Nov 18 at 12:35










  • The objective of such a command would be to set the boolean to false... after creation of this boolean if it doesn't yet exist. Of course, it's very easy to write such a command. My question is: why such an command doesn't since it would be very similar to the existing commands for many other expl3 types of objects.
    – F. Pantigny
    Nov 18 at 12:52












  • The default value of a new boolean is false.
    – Ulrike Fischer
    Nov 18 at 14:52










  • @ Ulrike Fischer. Yes, I know but this is not my question.
    – F. Pantigny
    Nov 18 at 15:55






  • 2




    I think it would make sense to provide such a command.
    – Bruno Le Floch
    Nov 18 at 16:24
















@TeXnician But isn't the objective to make a new one, or to set an existing false?
– Manuel
Nov 18 at 12:35




@TeXnician But isn't the objective to make a new one, or to set an existing false?
– Manuel
Nov 18 at 12:35












The objective of such a command would be to set the boolean to false... after creation of this boolean if it doesn't yet exist. Of course, it's very easy to write such a command. My question is: why such an command doesn't since it would be very similar to the existing commands for many other expl3 types of objects.
– F. Pantigny
Nov 18 at 12:52






The objective of such a command would be to set the boolean to false... after creation of this boolean if it doesn't yet exist. Of course, it's very easy to write such a command. My question is: why such an command doesn't since it would be very similar to the existing commands for many other expl3 types of objects.
– F. Pantigny
Nov 18 at 12:52














The default value of a new boolean is false.
– Ulrike Fischer
Nov 18 at 14:52




The default value of a new boolean is false.
– Ulrike Fischer
Nov 18 at 14:52












@ Ulrike Fischer. Yes, I know but this is not my question.
– F. Pantigny
Nov 18 at 15:55




@ Ulrike Fischer. Yes, I know but this is not my question.
– F. Pantigny
Nov 18 at 15:55




2




2




I think it would make sense to provide such a command.
– Bruno Le Floch
Nov 18 at 16:24




I think it would make sense to provide such a command.
– Bruno Le Floch
Nov 18 at 16:24










1 Answer
1






active

oldest

votes

















up vote
2
down vote













You have to keep in mind that expl3 is under very active development and no “final” version exists yet. That is to say, that the reason for the absence of commands like bool_false_new:N is that nobody has implemented them yet. This is usually due to the fact that nobody was able to come up with a convincing use-case. The LaTeX3 team is rather reluctant with adding new functionality for which there are few or no users, out of fear that expl3 becomes too bloated and unmaintainable. Nevertheless, you should feel encouraged to file a pull request against the official expl3 upstream code at https://github.com/latex3/latex3 such that a discussion about this new feature can be created.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    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',
    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
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460581%2fquestion-about-the-booleans-in-expl3-of-latex3%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








    up vote
    2
    down vote













    You have to keep in mind that expl3 is under very active development and no “final” version exists yet. That is to say, that the reason for the absence of commands like bool_false_new:N is that nobody has implemented them yet. This is usually due to the fact that nobody was able to come up with a convincing use-case. The LaTeX3 team is rather reluctant with adding new functionality for which there are few or no users, out of fear that expl3 becomes too bloated and unmaintainable. Nevertheless, you should feel encouraged to file a pull request against the official expl3 upstream code at https://github.com/latex3/latex3 such that a discussion about this new feature can be created.






    share|improve this answer

























      up vote
      2
      down vote













      You have to keep in mind that expl3 is under very active development and no “final” version exists yet. That is to say, that the reason for the absence of commands like bool_false_new:N is that nobody has implemented them yet. This is usually due to the fact that nobody was able to come up with a convincing use-case. The LaTeX3 team is rather reluctant with adding new functionality for which there are few or no users, out of fear that expl3 becomes too bloated and unmaintainable. Nevertheless, you should feel encouraged to file a pull request against the official expl3 upstream code at https://github.com/latex3/latex3 such that a discussion about this new feature can be created.






      share|improve this answer























        up vote
        2
        down vote










        up vote
        2
        down vote









        You have to keep in mind that expl3 is under very active development and no “final” version exists yet. That is to say, that the reason for the absence of commands like bool_false_new:N is that nobody has implemented them yet. This is usually due to the fact that nobody was able to come up with a convincing use-case. The LaTeX3 team is rather reluctant with adding new functionality for which there are few or no users, out of fear that expl3 becomes too bloated and unmaintainable. Nevertheless, you should feel encouraged to file a pull request against the official expl3 upstream code at https://github.com/latex3/latex3 such that a discussion about this new feature can be created.






        share|improve this answer












        You have to keep in mind that expl3 is under very active development and no “final” version exists yet. That is to say, that the reason for the absence of commands like bool_false_new:N is that nobody has implemented them yet. This is usually due to the fact that nobody was able to come up with a convincing use-case. The LaTeX3 team is rather reluctant with adding new functionality for which there are few or no users, out of fear that expl3 becomes too bloated and unmaintainable. Nevertheless, you should feel encouraged to file a pull request against the official expl3 upstream code at https://github.com/latex3/latex3 such that a discussion about this new feature can be created.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 19 at 3:55









        Henri Menke

        67.3k7148255




        67.3k7148255






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f460581%2fquestion-about-the-booleans-in-expl3-of-latex3%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

            Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

            ComboBox Display Member on multiple fields

            Is it possible to collect Nectar points via Trainline?