-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Maybe{T} typealias #3332
Comments
+1 |
2 similar comments
+1 |
+1 |
Has anyone ever thought of overloading |
That has occurred to me many times but I was afraid of the wrath of Bezanson. Bezanson!! But seriously, it might be ok but we generally want to avoid a lot of puns on operators. |
Note that that conflicts with using |
I believe #5164 closes this? |
I'm not seeing the connection--do you mind spelling it out for my coffee-deprived brain? |
Hmmm.......I thought I remember seeing something about allowing any immutable as a type parameter, and thought this pull request did it, but perhaps it was more focused on just tuples. In any case, I ran the code at the top and it seems to work, so maybe this was closed by something else before? |
That PR was just about tuples. The code above worked fine before; it just wasn't (and still isn't) in Base. |
I guess I'm misunderstanding the purpose of this issue then. I thought it was because the above code wasn't legal (hence the "Allow this typealias..."). If it's just to include the |
No, I believe it originally didn't work. Seems to be fixed now. |
for people coming from googling "julia maybe type" - there's now Nullable which seems to be similar http://julia.readthedocs.org/en/latest/manual/types/#nullable-types-representing-missing-values |
Jeff noted that
and things like it can probably be easily implemented. Just noting it here, so we don't forget about it.
The text was updated successfully, but these errors were encountered: