I most definitely think that it would be worse to have two different names for the same function. `[] and `-> is enough.
/ Martin Stjernholm, Roxen IS
Previous text:
2002-11-09 17:21: Subject: More about ADTs
The only argument I see in favour of that is the lesser ugliness when used OO-wise (i e my_object->delete(...)) rather than how the LFUN is ordinarily invoked, via some toplevel command (like m_delete(...)). A solution that would look good from both aspects would be nice, though I can't come up with one I really like.
Does having both methods (_delete for the LFUN, delete for nice looks in the OO-style class interface) smell better or worse than the two problems (ugly name / reserving delete for this global interface)? I think I personally lean towards "better".
/ Johan Sundström (ärkehertig av Lysators rootgrupp)