-
Notifications
You must be signed in to change notification settings - Fork 26
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
Lib/boxed #455
Lib/boxed #455
Conversation
I see a mix of camel case and snake case. |
I'm using Uppercase names for boxed types, not CamelCase. The snake case is functions in the pre-existing |
|
true! |
If the problems don't lie in your code, then your code should be acceptable. |
Nice! Merging after Slack discussion is "done". |
@@ -0,0 +1,8 @@ | |||
-- A boxed unit () value. | |||
passive class Void { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this type be consistent and have the value
method to return void
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this class be called Unit
, as it seems that void
and ()
(Unit) are two different things (FTW)?
Curious: what is the motivation behind this? |
Even if done under the hood, there'll be classes for those values. If there the "under the hood" stuff will come soon-ish, it might make sense to merge this into the under-the-hood-efforts. |
If it were done under the hood, there'd probably be a single polymorphic class (perhaps called Box) that did the job of all of these classes. |
If you had a Edit: If I'm mistaken, then what @supercooldave says is true and this PR could pbly be rejected! |
Thanks for providing motivation, albeit in comments not in PR. |
what is the status of this PR? I am kind of lost in the whole conversation |
Good you ask. The last consensus (IIRC) was that it shouldn't go in as long as we're discussing a code convention for encore. We have stopped discussing the code convention. If people don't object, I'd close the PR tomorrow or late tonight to free up some cycles. |
Executive decision: change the name of the Void box to Unit box, add the corresponding |
@supercooldave: done! |
Some wrappers for boxed primitives.
Support a
show
method as a first step towards a generalShow
trait for printable objects.