-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversion of functions to S4 in FTP download part of package #13
Comments
I thought I said why would it be better. S3 functions are not stable, while S4 are. The main issue is the class inheritance which is messed up in S3. The code will be more stable, and well written. http://stackoverflow.com/questions/6450803/class-in-r-s3-vs-s4 |
Well, the stackoverflow answer seems to say "depends on your project, I never needed S4 so far" |
@fbastian You can check in which form is GEOquery written. I don't see why is such an issue to make code better. After all, this is a software and not some research project where you just want to make your code to work. I am fine with S3 there. Just find S3 a bit amateur for a package. |
A few comments after checking these links:
So the question here is: should we switch everything to the S4 class system? This would be a bit more elegant, but it will take some work, can introduce bugs, and really there is no issue with the actual code. So my recommendation is to keep things as is in the near future. => Let's keep this issue open with a low priority tag. PS: The |
I know that we are using RefClass in Anyways, its good @julien-roux that you put the points. I am for to be re-written either in S4 or RefClasses. Maybe better in S4 since we depend on topGO. I agree that this is for now low priority, but seems it needed discussion to agree upon. Was not sure why was a such a problem to convince. ps. choices of |
Ok then I am not sure what you are referring to when you mentioned S3 classes and "download part". Could you clarify? Or give a script name and line numbers?
I see your point, but I just think there are a lot of higher priority things to work on |
See also http://adv-r.had.co.nz/R5.html It doesn't seem to me that the specificities of RC (mutability) are needed for the So I would now be a bit more in favor of switching the |
(Originally posted by @wirawara):
The download part of package should be re-written in S4 system.
(Added by me):
Is this necessary? Why would it be better (apart from more elegant code)?
The text was updated successfully, but these errors were encountered: