Skip to content
Prev 829 / 29559 Next

C API for sp classes?

On Tue, 2006-03-07 at 17:39 +0000, Barry Rowlingson wrote:
I couldn't agree more. It seems namespaces in R confuse binding names to
namespaces with encapsulation (hiding symbols within packages). For
efficiency reasons, your forced to export all your public symbols into
the global namespace anyway. Ugh!

As you point out, it would be nice if classes defined namespaces so that
methods could be attached to the class as in C++ and Python. Of course
programming S/R would not be nearly so much fun if it didn't have so
many quirks... :-)
I do prefer S4 methods. On the other hand, I found they really slowed my
rate of programming. Several of my packaging projects (DBI.PgSQL) got
derailed while I came up to speed with S4 methods.

THK