Top "Structural-typing" questions

Structural typing is the ability of a type system to identify a type based on what data it contains, rather than how a type is named.

accept multiple types for a parameter in scala

I have two objects, ObjectA and ObjectB, both with a method update(). I want to write a function that accepts …

scala types structural-typing
Getting a structural type with an anonymous class's methods from a macro

Suppose we want to write a macro that defines an anonymous class with some type members or methods, and then …

scala macros scala-2.10 structural-typing scala-macros
Scala: difference between a typeclass and an ADT?

What are the differences between typeclasses and Abstract Data Types? I realize this is a basic thing for Haskell programmers, …

scala haskell typeclass abstract-data-type structural-typing