Typically with anonymous types you can write
class {
method1(x) = ...
method2(x) = ...
...
}
But to do this in julia you'd have to refer to the type in both method
definitions, which requires some kind of name.
On Jan 9, 2014 8:37 PM, "Stefan Karpinski" <[email protected]> wrote:
> Not entirely since you can add methods via any name. But once you have the
> ability to create anonymous modules, you can anonymize anything.
>
>
> On Thu, Jan 9, 2014 at 8:18 PM, Jeff Bezanson <[email protected]>wrote:
>
>> With external dispatch, you pretty much need to name a type to be able to
>> add methods to it anyway.
>> > On Jan 10, 2014, at 5:43, Ivar Nesje <[email protected]> wrote:
>>
>> >
>> > I think you can use the same trick as here
>> https://groups.google.com/forum/m/?fromgroups#!topic/julia-users/NZGMP-oa4T0
>> >
>> > I'm a litle curious, why do you want this?
>> Everything first class have to be anonymous.
>>
>
>