On Sun, 2018-05-20 at 15:31 +0200, Christof Ressi wrote:
this has been on my wish list for a while and I want to do a PR. do you guys have suggestions which kind of interface you would prefer? these come to my mind:
- [delete] object: send it a pointer and it will delete the scalar
I thought this one to be the most natural, since there is also an [append] object.
- [delete <p>( message for canvases
There are no other uses where a method uses a pointer as argument, are there?
- [delete( message for [pointer]: deletes the scalar of the currently
stored pointer.
Sounds good, too, and seems what has the most thumb-ups yet.
I tend towards the last option, since [pointer] is already used to traverse a subpatch, so [delete( could go well with [traverse(, [bang( and [next(. the canvas messages would also makes sense to me. having a dedicated object seems rather overkill.
You're probably right.
Roman