-
Notifications
You must be signed in to change notification settings - Fork 0
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
Length of reverse #8
Comments
It could be an extension except that there are already other extensions that start with hex code b, so for example if it were length of chunkby that would be valid. It would be ambiguous which extension to apply. |
Same applies to |
What about |
I'm not sure I follow, are you just saying that reverse reverse would be a possible extension but has the same problem?
I agree that length or reverse of + or * on a list would be a valid extension. I think these are unused because there wasn't much need for more functions of type It could be good to keep a list of possible extensions along with most desired ops. Here is a list I have in my old notes:
Note that some of those ideas may be invalid / outdated. I personally will likely not be adding more features to Nibbles. But I welcome contributions from others if you'd like to contribute. Just know that part of the philosophy is to keep things simple, not to fill every possible byte sequence with meaning. So worth discussing new features first before implementing them! I am sure there are some simple powerful ops that I have overlooked. Also btw if you didn't know about this page already it could be useful for finding extensions: fullref (since the quickref hides some things that are abstracted away as implementation detail) |
I meant e.g. introducing some 3-nibble instructions to mean |
|
, \ <list>
(db) meanslen(reverse(<list>))
which can be justlen(<list>)
. Should it be extension?The text was updated successfully, but these errors were encountered: