-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The next version of squirrel,Can you add integrated binding to C + + 20 ranges syntax? #246
Comments
I unpacked all the questions from this, while trying to understand it
And all the same questions were asked in another thread, where it should be deleted. |
The post has clearly been run through a translator so is hard to understand. Since "ranges syntax" was mentioned, I think the request is for the ability to write a compound function call using pipe operators, e.g. (stealing an example from elsewhere) But is there really much benefit to that syntax? |
sense @rversteegen @zeromus The point is C++ 20 "ranges",squirrel won't support "ranges",But can you provide an indirect binding method? “range = vec | foo | bar(3) | baz(7) | baz(bar(foo(vec), 3), 7)” Hopefully, squirrel supports "ranges" and it will be more convenient to write business code. |
Oh, if you want a way to create a binding to a C++ range, then I think that doesn't require any changes to Squirrel, it can just be a library which creates a proxy object (a userdata?). Maybe. |
Squirrel is very easy to use~~~
Thanks for the development of @albertodemichelis ! Only after version 3.1 was updated in 2016, there was no news again?
Recently, the new features of C + + 23 standard have been added a lot? Ranges has the most features, and ranges has become the biggest winner. Our question is, can we integrate and bind the ranges syntax above C + + 20 in squirrel? Because it's so convenient to write business code with ranges!
Ranges realizes a variety of parallel combined filtering operations and other operations through pipeline symbols, which should also be the core functional goal of the next generation of squirrel. It not only saves a lot of code, but also greatly increases the flexibility of the algorithm!
In addition, can squirrel support the isolation of multi sub table data and operations? We hope that on the basis of the root table, there can be completely independent sub tables, which can support the same name of objects, and the algorithm can be limited to a certain sub table. C + + 20 provides modules, realizes a high degree of isolation, and even isolates Hongdu? Is there a similar feature in JS? For example, if we declare in the root table and instantiate in different sub tables, the algorithm and object will not be afraid of the problem of duplicate names, and the data will be effectively isolated? In this way, it is convenient to write a large amount of business code.
We are highly optimistic about squirrel and hope @albertodemichelis can give an answer!
thank! thank! thank!
The text was updated successfully, but these errors were encountered: