GithubHelp home page GithubHelp logo

Confusion in documentation of < > about doc HOT 4 CLOSED

raku avatar raku commented on June 1, 2024
Confusion in documentation of < >

from doc.

Comments (4)

awwaiid avatar awwaiid commented on June 1, 2024

Right now these are some nodes like "This is not a real operator, just syntactic sugar that is turned into the { } postcircumfix operator at compile-time." for postcircumfix.< > -- do you think that a similar note for circumfix: < > will suffice?

from doc.

AlexDaniel avatar AlexDaniel commented on June 1, 2024

@awwaiid I think yes.

from doc.

AlexDaniel avatar AlexDaniel commented on June 1, 2024

OK, so:

  • Postcircumfix: .< > leads to here. It clearly says In most cases, a dot may be placed before a postfix or postcircumfix: (implies that it is not an operator on its own), but then it also says Technically this is not an operator, but syntax special-cased in the compiler.. So no problem here.
  • Quote: < > leads to here. Again, I don't think that there's any problem with that.

However, there's now < > in Routine category: https://docs.perl6.org/routine/$LESS-THAN_SIGN%20$GREATER-THAN_SIGN and it says:

The quote-words construct. Breaks up the contents on whitespace, and returns a List of the words. If a word looks like a number literal or a Pair literal, it is converted to the appropriate number.

So at this point the most appropriate title for this ticket is: < > is listed as a circumfix operator, but it is not a real operator. Is that right?

from doc.

gfldex avatar gfldex commented on June 1, 2024

fixed with 22ddf6d b3dc4f2 2eb85f3

from doc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.