-
Notifications
You must be signed in to change notification settings - Fork 9
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
Delete container #37
Comments
Delete container is a very poorly defined operation in Swift. |
I was wondering how this could be tricky, but then I noticed that you cannot delete a container unless it is empty. So can we not implement it like this:
I've so far tried to keep little to no state on the client side. I'm not 100% sure why I would need to keep extra data for this operation? |
@pkit I've added this feature in the most simple way possible:
This will of course fail if a new object is added while I'm deleting the old ones. I think it is okay for it to fail in that case (Swift Browser doesn't display anything sensible to the user in that case). Will you care to expand on what problems this implementation will bring with it? I think you're implying that I'll get inconsistent results somehow? |
No description provided.
The text was updated successfully, but these errors were encountered: