-
Notifications
You must be signed in to change notification settings - Fork 121
add tell function #44
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
Conversation
|
This would be |
|
I notice that I would use this function constantly during testing. Also, it is used four times internally. |
|
It's not as easy as I thought because there is another option
This is a hint that we should add it, but would it be used as often in normal code? It's really easy to create a convenience function within the tests (or in user code) for a specific set of fixed arguments. I think "shortcuts" of this sort are really useful if they are targeted for use in an interactive session, but as I see it this is not the case here. IMHO, this is part of the low-level functionality, therefore it doesn't have to be that easy.
I don't think this is a problem. In my opinion the I think we could add a |
|
There are two scenarios where
Really, you need that functionality whenever I can't use indexing. I think that this is a common enough use case to warant its own method. is just a lot nicer than Frankly, I even think that Is much easier to read than even though it is somewhat less efficient. |
|
I'm still not convinced.
In my opinion,
Right after finishing the We have a much superior way to read a single slice of data with the And if you look closely at your argument, you'll see that it's really not so much for But we don't have to discuss this topic now, I will bring it up later anyway.
The differences in your example are mainly a matter of taste. Having said all that, I want to stress that I don't have really strong arguments against Now that I think of it, I actually have some arguments against
In case of doubt, I would drop or at least postpone this issue. |
You misunderstand my argument completely. If I can index, I need neither seek nor tell. On the other hand, if I can't index, I do need seek and tell. I can express tell as seek, but that does not remove my need for it. Regarding your last paragraph, please stop that crap. More work is is NOT an argument. We're doing this for free and for fun. If too much work ever entered that equation, we wouldn't do it. Seriously. It's insulting. I am telling you that I see a need for Arguments for
Arguments against
We can postpone this and see if I see more need for this outside of the tests. |
I don't think I'm misunderstanding it. I'm just viewing it from a different angle.
I agree.
You do need
I'm not sure what you mean by that. Do you mean you need a method called
I don't think it's crap. We're indeed doing that for free and for fun, but it's work nonetheless. And I like to spend work rather on something I believe is useful and improves the library, than spend work on something I don't believe in. A related argument, which I failed to mention, is apart from "more work" it would also simply mean "more code".
If that's the case, you shall get it! As I wrote above: "I don't have really strong arguments against I was just hoping to understand your motivation rather than taking your word for it. I'm still not convinced by any of the arguments.
OK, that's a valid argument.
Someone who knows the API wouldn't expect it.
As I said, a weak argument ...
Yes, I think that would be the best course of action in the current case. |
|
|
|
I added a commit implementing Is it OK? Can I merge? |
|
Merge away! |
No description provided.