Re: [julia-users] Re: [julia-dev] Re: Polymorphism and user-defined types

2014-04-08 Thread Mason McGill
On Monday, April 7, 2014 8:51:20 PM UTC-7, Stefan Karpinski wrote: > > A couple of examples of informal protocols that are used all the time in > Julia and allow user defined types to easily hook into predefined generic > behaviors are the start/done/next protocol for iteration and the order and

Re: [julia-users] Re: [julia-dev] Re: Polymorphism and user-defined types

2014-04-08 Thread Mason McGill
On Tuesday, April 8, 2014 1:17:06 PM UTC-7, Isaiah wrote: > > This is what I was looking for; so if I understand you correctly, you >> satisfy protocols by extending/monkey-patching Base. This seems >> reasonable, but what do you do when you want to define your own protocol >> (e.g. Classifie

Re: [julia-users] Re: [julia-dev] Re: Polymorphism and user-defined types

2014-04-08 Thread Mason McGill
On Tuesday, April 8, 2014 1:23:57 PM UTC-7, Stefan Karpinski wrote: > > On Tue, Apr 8, 2014 at 4:10 PM, Mason McGill > > > wrote: > >> >> After all this is sorted out, I'd be happy to distill this into a >> subsection for the Julia "Types"

Re: [julia-users] Re: [julia-dev] Re: Polymorphism and user-defined types

2014-04-08 Thread Mason McGill
On Tuesday, April 8, 2014 2:18:18 PM UTC-7, Stefan Karpinski wrote: > > It may not address the cross-module aspect well. We didn't have modules > when I write it originally, so any documentation of that interaction would > necessarily be tacked on. > > "Modules" comes after "Methods", so "Modul