I'm not sure then, but hopefully someone here can help you out! Naively perhaps it feels like this makes the type inference impossible. Your function decomplexify always produces the same output for the same input, but what if you had a function that returned a different output (always of type DataType) based on a random number generated inside the function? Then using that function to annotate field types would be super hairy, right?
- [julia-users] dependent types in julia? Neal Becker
- [julia-users] Re: dependent types in julia? Evan Fields
- [julia-users] Re: dependent types in julia? Neal Becker
- [julia-users] Re: dependent types in julia? Evan Fields
- [julia-users] Re: dependent types in julia? Dan
- Re: [julia-users] Re: dependent types in ... Isaiah Norton
- [julia-users] Re: Re: dependent type... Neal Becker
- [julia-users] Re: Re: dependent ... Jeffrey Sarnoff
- [julia-users] Re: Re: depend... Neal Becker
- [julia-users] Re: Re: depend... Jeffrey Sarnoff