-
Notifications
You must be signed in to change notification settings - Fork 1
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
WISH: compact construction syntax for vector types #2396
Comments
Implements: metaeducation/rebol-issues#2396 Example: ``` >> #[ui8! [1 2 3]] == make vector! [unsigned integer! 8 3 [1 2 3]] ```
Can I ask what you use vectors for in Rebol? Absolutely not that I think they aren't usefull, but I haven't thought of using them so far with Rebol and am just interested? Does r3 have special block types like #[ ] ? The solution of just having a function like a "vector" function like |
At this moment I'm using vectors for sound processing and before I used them in graphics too.
|
I know, that it is just a cosmetic thing, but why not to have it, when it was so cheap to add. My goal is to do 3D from Rebol one day, and I think, that code:
looks better than:
Of course I can use helper functions. |
As we don't have any syntax for vector and its variants, I think it would be nice to enhance construction syntax a little bit, to support short vector variant creation.
For example:
Supported numeric types could be:
The text was updated successfully, but these errors were encountered: