On Mon, Aug 9, 2010 at 11:25 AM, Dino Viehland <[email protected]> wrote:
> clr.LoadClrExtensions(namespace)
I'd like to paint the bikeshed 'clr.ImportExtensions()', if possible,
and have it take either a namespace or a static class - i.e.
System.Linq or System.Linq.Enumerable.
import clr, System
clr.ImportExtensions(System.Linq)
Looks fine to me.
For a shorter syntax, I would prefer
from System.Linq.Enumerable import *
and have it pull in any extension methods in that class. My only
concern is that it's a little too magical, and doesn't match the usual
behaviour of an import statement.
- Jeff
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com