FFI | Question about name and prefix: FFIExternalSharedPool

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FFI | Question about name and prefix: FFIExternalSharedPool

marcel.taeumel
Hi, there.

I wonder whether "FFIExternalSharedPool" should be renamed to "ExternalPool".

Well, compared to ExternalObject, such external pools will not need a "handle" because they represent a cache of constants, which got - at some point - extracted from C sources/headers. So, the prefix "external" might be misleading. Not sure.

Well, compared with the base class SharedPool, The notion of "shared" might not be required here. Looking at all implementors of #hasBindingThatBeginsWith:, there are many kinds of objects that can be used as "poolDictionary" for classes. Well, except for classes themselves. Which is strange. :-) Yet, I think that's why SharedPool exists in the first place. A class that can be used as pool. Maybe it is just a limitation of Shout.

Any thoughts on this?

Best,
Marcel