Giter VIP home page Giter VIP logo

Comments (1)

2colours avatar 2colours commented on June 9, 2024

I'm not a great fan of adding tutorial-ish stuff to type/ pages; I think those pages are meant to be references of very specific things, like here the Method type, not "methods" as a broader concept.

With language/syntax, I'm not sure what you'd like to see. It points to the class tutorial at an appropriate place, in my opinion. If you'd like to see more, please give further hints...
By the way, there is a problem there:

When declared within a class, a subroutine is named "method"

This is utterly wrong. One can declare subroutines inside of classes, moreover I think one can even declare methods outside of classes. This is the reason I don't like arguments like "nobody ever complained so it must be good". For now, I may just open an issue for it because it's not immediately obvious to me how to fix that.

For language/operators, I agree. Perhaps you would be interested in my rework ideas for the operator? In this particular case, I'm not sure what to do. Perhaps the whole concept of "methodop" should go. Some of them can be used as prefix, implying the topic, but not all of them, e.g >>. notoriously cannot be called that way; it will be a syntax error. This could be yet another aspect of operators that could be put into a table, I mean whether they can be used as "prefix", implying the topic variable as the self-object, or not.

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.