Boo

Support extension methods declared in an imported namespace without importing the type itself

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: Compiler
  • Labels:
    None
  • Number of attachments :
    0

Description

Currently Boo only recognize extensions if the type declaring them is imported.
People expect Boo to be compatible with C# where importing a namespace makes available any extensions defined in any of its types.
Opinions?

Issue Links

Activity

Hide
Avishay Lavie added a comment -

Changed title and description to more accurately describe the issue.

Show
Avishay Lavie added a comment - Changed title and description to more accurately describe the issue.
Hide
Logan Barnett added a comment -

I found this to be pretty confusing when I went to use some pre-built extension methods the first time. Is there a large benefit seen from importing the type directly? To me it feels like you need to know the intimate details of the library's somewhat inner workings. For example, if I do using System.Linq; in C# I get everything Linq has. If I do import System.Linq.Enumerable in Boo, I might get everything?

Show
Logan Barnett added a comment - I found this to be pretty confusing when I went to use some pre-built extension methods the first time. Is there a large benefit seen from importing the type directly? To me it feels like you need to know the intimate details of the library's somewhat inner workings. For example, if I do using System.Linq; in C# I get everything Linq has. If I do import System.Linq.Enumerable in Boo, I might get everything?

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated: