LukaJCB / typeclass-proposal

Typeclass proposal for Dotty
47 stars 1 forks source link

Suggestion on extension methods #7

Open alexandru opened 6 years ago

alexandru commented 6 years ago
  1. add a paragraph on how they relate ro C#’s extension methods
  2. mention if they can be called as normal functions (I assume they can be)
  3. object Traverse defines extension methods without implementation; is that a feature? make it clear
nbenns commented 5 years ago

I hope they can be as well, I like the flexibility of having both the extension method and the actual method. However from the translation section it seems that it would ONLY creates the implicit class out of the extension.