Type Unstable: Function within a Struct

Every function has its own type (Function is an abstract type), so you want to parameterize your struct by that type. Something like

struct Cut{F}
  member::String
  sound::F
end
7 Likes