I find some time ago the enum kNilOptions
which is equal to 0.
I try to make my code the most readable but I wonder what is best to use when you have methods that take an option parameter, for example :
[NSData dataWithContentsOfFile:imageURL.path
options:kNilOptions
error:&error];
I usually see nil
in a lot of code I read but I think kNilOptions
would be more accurate. I don't see often (almost never) kNilOptions
. Is there a reason for that?
Do you think it is ok to use it or is it better to stick to simply nil
?