Skip to main content
Fixed "can can't" typo
Source Link
CodesInChaos
  • 5.8k
  • 4
  • 22
  • 27

In Java and similar incarnations of OOP, instance methods (unlike free functions or extension methods) cannottcan't be added from other modules.

This becomes more of a restriction when you consider interfaces which can only be implemented by the instance methods. You can't define an interface and a class in different modules and then use code from a third module to bind them together. A more flexible approach, like Haskell's type classes should be able to do that.

In Java and similar incarnations of OOP, instance methods (unlike free functions or extension methods) cannott be added from other modules.

This becomes more of a restriction when you consider interfaces which can only be implemented by the instance methods. You can't define an interface and a class in different modules and then use code from a third module to bind them together. A more flexible approach, like Haskell's type classes should be able to do that.

In Java and similar incarnations of OOP, instance methods (unlike free functions or extension methods) can't be added from other modules.

This becomes more of a restriction when you consider interfaces which can only be implemented by the instance methods. You can't define an interface and a class in different modules and then use code from a third module to bind them together. A more flexible approach, like Haskell's type classes should be able to do that.

In Java and similar incarnations of OOP, instance methods (unlike free functions or extension methods) can can'tcannott be added from other modules.

This becomes more of a restriction when you consider interfaces which can only be implemented by the instance methods. You can't define an interface and a class in different modules and then use code from a third module to bind them together. A more flexible approach, like Haskell's type classes should be able to do that.

In Java and similar incarnations of OOP, instance methods (unlike free functions or extension methods) can can't be added from other modules.

This becomes more of a restriction when you consider interfaces which can only be implemented by the instance methods. You can't define an interface and a class in different modules and then use code from a third module to bind them together. A more flexible approach, like Haskell's type classes should be able to do that.

In Java and similar incarnations of OOP, instance methods (unlike free functions or extension methods) cannott be added from other modules.

This becomes more of a restriction when you consider interfaces which can only be implemented by the instance methods. You can't define an interface and a class in different modules and then use code from a third module to bind them together. A more flexible approach, like Haskell's type classes should be able to do that.

added 41 characters in body
Source Link
CodesInChaos
  • 5.8k
  • 4
  • 22
  • 27

InstanceIn Java and similar incarnations of OOP, instance methods (unlike free functions or extension methods) can can't be added from other modules.

This becomes more of a restriction when you consider interfaces which can only be implemented by the instance methods. You can't define an interface and a class in different modules and then use code from a third module to bind them together. A more flexible approach, like Haskell's type classes should be able to do that.

Instance methods (unlike free functions or extension methods) can can't be added from other modules.

This becomes more of a restriction when you consider interfaces which can only be implemented by the instance methods. You can't define an interface and a class in different modules and then use code from a third module to bind them together. A more flexible approach, like Haskell's type classes should be able to do that.

In Java and similar incarnations of OOP, instance methods (unlike free functions or extension methods) can can't be added from other modules.

This becomes more of a restriction when you consider interfaces which can only be implemented by the instance methods. You can't define an interface and a class in different modules and then use code from a third module to bind them together. A more flexible approach, like Haskell's type classes should be able to do that.

Source Link
CodesInChaos
  • 5.8k
  • 4
  • 22
  • 27
Loading