PRE-PROPOSAL: Extension methods (original) (raw)
Mark Mahieu markmahieu at googlemail.com
Wed Mar 18 13:05:21 PDT 2009
- Previous message: PRE-PROPOSAL: Extension methods
- Next message: PRE-PROPOSAL: Extension methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2009/3/18 Neal Gafter <neal at gafter.com>
When an extension method has been statically imported, you can use it as if it is a member of the type of its first argument.
Just out of curiosity, what do you think the behaviour should be when the 'first argument' is null? Put another way, from your experience would the model chosen here for C# be the right choice for Java?
Mark
- Previous message: PRE-PROPOSAL: Extension methods
- Next message: PRE-PROPOSAL: Extension methods
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]