Thread[] with Circle[]. “Too many arguments given for Circles” but works fine. Bug of Mathematica?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I am using Mathematica 11.3.0.0, 64 bit.



Here is my code:



Graphics[Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]]


Here is code as it looks in a notebook:





On mouseover on , 1, 0:





But when I evaluate that code I am getting the right output:





Question:



Why , 1, 0 is colored in red but evaluates right? Is it a bug? Or maybe I am doing something wrong?










share|improve this question























  • Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can use MapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] instead.
    – Henrik Schumacher
    2 hours ago






  • 1




    SyntaxInformation[Circle] gives "ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]. That is, the first argument (if it is used) should be a list of two elements.
    – kglr
    2 hours ago






  • 2




    Please do not use bug tag unless it is confurmed by support or community.
    – Kuba♦
    2 hours ago














up vote
1
down vote

favorite












I am using Mathematica 11.3.0.0, 64 bit.



Here is my code:



Graphics[Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]]


Here is code as it looks in a notebook:





On mouseover on , 1, 0:





But when I evaluate that code I am getting the right output:





Question:



Why , 1, 0 is colored in red but evaluates right? Is it a bug? Or maybe I am doing something wrong?










share|improve this question























  • Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can use MapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] instead.
    – Henrik Schumacher
    2 hours ago






  • 1




    SyntaxInformation[Circle] gives "ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]. That is, the first argument (if it is used) should be a list of two elements.
    – kglr
    2 hours ago






  • 2




    Please do not use bug tag unless it is confurmed by support or community.
    – Kuba♦
    2 hours ago












up vote
1
down vote

favorite









up vote
1
down vote

favorite











I am using Mathematica 11.3.0.0, 64 bit.



Here is my code:



Graphics[Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]]


Here is code as it looks in a notebook:





On mouseover on , 1, 0:





But when I evaluate that code I am getting the right output:





Question:



Why , 1, 0 is colored in red but evaluates right? Is it a bug? Or maybe I am doing something wrong?










share|improve this question















I am using Mathematica 11.3.0.0, 64 bit.



Here is my code:



Graphics[Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]]]


Here is code as it looks in a notebook:





On mouseover on , 1, 0:





But when I evaluate that code I am getting the right output:





Question:



Why , 1, 0 is colored in red but evaluates right? Is it a bug? Or maybe I am doing something wrong?







graphics front-end syntax expression-manipulation






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









Kuba♦

99.9k11194493




99.9k11194493










asked 2 hours ago









vasili111

29517




29517











  • Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can use MapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] instead.
    – Henrik Schumacher
    2 hours ago






  • 1




    SyntaxInformation[Circle] gives "ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]. That is, the first argument (if it is used) should be a list of two elements.
    – kglr
    2 hours ago






  • 2




    Please do not use bug tag unless it is confurmed by support or community.
    – Kuba♦
    2 hours ago
















  • Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can use MapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] instead.
    – Henrik Schumacher
    2 hours ago






  • 1




    SyntaxInformation[Circle] gives "ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]. That is, the first argument (if it is used) should be a list of two elements.
    – kglr
    2 hours ago






  • 2




    Please do not use bug tag unless it is confurmed by support or community.
    – Kuba♦
    2 hours ago















Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can use MapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] instead.
– Henrik Schumacher
2 hours ago




Everything is fine. That's just the syntax highlighter. If it makes you feel better, you can use MapThread[Circle, -1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] instead.
– Henrik Schumacher
2 hours ago




1




1




SyntaxInformation[Circle] gives "ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]. That is, the first argument (if it is used) should be a list of two elements.
– kglr
2 hours ago




SyntaxInformation[Circle] gives "ArgumentsPattern" -> Optional[_, _], _., Optional[_, _]. That is, the first argument (if it is used) should be a list of two elements.
– kglr
2 hours ago




2




2




Please do not use bug tag unless it is confurmed by support or community.
– Kuba♦
2 hours ago




Please do not use bug tag unless it is confurmed by support or community.
– Kuba♦
2 hours ago










2 Answers
2






active

oldest

votes

















up vote
1
down vote













Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] a valid input? I hope it is clear it is not.



Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]] evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.



Related:



Why is this semicolon in red?






share|improve this answer





























    up vote
    1
    down vote













    SyntaxInformation[Circle] 



    "ArgumentsPattern" -> Optional[_, _], ., Optional[, _]




    That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.






    share|improve this answer




















      Your Answer




      StackExchange.ifUsing("editor", function ()
      return StackExchange.using("mathjaxEditing", function ()
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      );
      );
      , "mathjax-editing");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "387"
      ;
      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: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













       

      draft saved


      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182424%2fthread-with-circle-too-many-arguments-given-for-circles-but-works-fine-b%23new-answer', 'question_page');

      );

      Post as a guest






























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] a valid input? I hope it is clear it is not.



      Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]] evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.



      Related:



      Why is this semicolon in red?






      share|improve this answer


























        up vote
        1
        down vote













        Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] a valid input? I hope it is clear it is not.



        Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]] evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.



        Related:



        Why is this semicolon in red?






        share|improve this answer
























          up vote
          1
          down vote










          up vote
          1
          down vote









          Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] a valid input? I hope it is clear it is not.



          Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]] evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.



          Related:



          Why is this semicolon in red?






          share|improve this answer














          Is Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5] a valid input? I hope it is clear it is not.



          Will Thread[Circle[-1, 0, 0, 0, 1, 0, 0.5, 1.0, 0.5]] evaluate to something reasonable? It will but you don't want a front end to evaluate your code behind the hood to determine this. Consider consequences if that was something less trivial.



          Related:



          Why is this semicolon in red?







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 1 hour ago


























          community wiki





          2 revs
          Kuba





















              up vote
              1
              down vote













              SyntaxInformation[Circle] 



              "ArgumentsPattern" -> Optional[_, _], ., Optional[, _]




              That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.






              share|improve this answer
























                up vote
                1
                down vote













                SyntaxInformation[Circle] 



                "ArgumentsPattern" -> Optional[_, _], ., Optional[, _]




                That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.






                share|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  SyntaxInformation[Circle] 



                  "ArgumentsPattern" -> Optional[_, _], ., Optional[, _]




                  That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.






                  share|improve this answer












                  SyntaxInformation[Circle] 



                  "ArgumentsPattern" -> Optional[_, _], ., Optional[, _]




                  That is, the first argument (if it is used) should be a list with two elements. Hence, the excess arguments are colored red by the syntax highlighter.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 48 mins ago









                  kglr

                  161k8185385




                  161k8185385



























                       

                      draft saved


                      draft discarded















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmathematica.stackexchange.com%2fquestions%2f182424%2fthread-with-circle-too-many-arguments-given-for-circles-but-works-fine-b%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      Comments

                      Popular posts from this blog

                      Long meetings (6-7 hours a day): Being “babysat” by supervisor

                      Is the Concept of Multiple Fantasy Races Scientifically Flawed? [closed]

                      Confectionery