[julia-users] Re: Nullable parametric types

2015-07-21 Thread Darwin Darakananda
Thanks for the responses! I wasn't not sure how I could use typealiases to deal with this, so I went with the macro route and ended up with https://gist.github.com/darwindarak/0eb5e53c21c896392938. It converts the functions/type declarations into the parametric form suggested by Mauro. On

[julia-users] Re: Nullable parametric types

2015-07-21 Thread David Gold
Or use typealiases? On Tuesday, July 21, 2015 at 4:48:31 PM UTC-4, David Gold wrote: My instinct is to write a macro. On Tuesday, July 21, 2015 at 4:37:03 PM UTC-4, Darwin Darakananda wrote: Hi all, I'm in the process of replacing my Union{Nothing, T} annotations to Nullable{T}, but I'm

[julia-users] Re: Nullable parametric types

2015-07-21 Thread David Gold
My instinct is to write a macro. On Tuesday, July 21, 2015 at 4:37:03 PM UTC-4, Darwin Darakananda wrote: Hi all, I'm in the process of replacing my Union{Nothing, T} annotations to Nullable{T}, but I'm getting stuck when T is a parametric type. For example, replacing the function