-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Object-oriented style #2
Comments
+1 This would also cut down on typing |
If we're looking at the API anyway shouldn't Just my two cents. Fun project - thanks for sharing. :) |
@stengaard I think that's a separate item that should be its own issue. I'd be against having that as the default -- filename strings will be used most frequently by most people, and having to "manually" deal with filehandles would be an extra burden. My vote would be for additional |
I put it here mostly because it would already be a breaking change to the exported API, but I agree it's not really what Per is trying to get at. Regarding adding Read/Write: I would definitely go the other with - simplify API surface area. Specifically:
What I like about this project is that it is a small library. That makes it easy for the programmer to understand. I get that you're worried about leaking file-handles, but ask yourself what the core purpose of this library is? As I see it this library should allow the programmer decode, encode and manipulate XLSX data, it shouldn't be managing files since that seems peripheral to it's purpose. But hey: your project, your rules. :) |
Yes, this issue was actually only about making the API have an object oriented style. That said, there might be other things that should also be changed. And while I think that it's good to add |
We could also consider to use number index rather than something like "A2"? |
Hi @ericuni, this library provides a function named |
When I saw the example code, my direct reaction was that it should be in an object-oriented style:
The text was updated successfully, but these errors were encountered: