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
Add resolution document for #135 (Add Dict/Tuple to the core) #310
Conversation
Open the way to eventually introduce `ValueList` and `ValueMap` into Raku.
The resolution states that the types are to be introduced in That's all about "cons". On the "pros" side would be code which is not ready to migrate to |
Be explicit about scalar de-containerization and non-value type classes.
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.
👍
I know this is a bit like bikeshedding, but there's already a What I miss here, is mention of some of the other list like things, like I guess Also, I think we need some generic way to specify |
I was following the discussion in #135 and, in particular, @jnthn comment on IRC. Then there was your statement: "I do not care what they are called". Put together, both resulted in the discussion ending up with FWIW, I like
I don't think it makes sense to go that deep in this document. It's current purpose is to let the types to be eventually included into the core. But otherwise I'd rather agree that
It's up to the specs. They define the language, not documents in problem solving. What we decide in this repo under the
This is another big problem. We still don't have a generic way to create a So, I'd put it this way: if we want different names, we'd better have this agreed upon in #135 and then reflected here. I wouldn't push then and turn this PR into a draft. Otherwise we can have it accepted and decide on implementation details in a separate issue which should result in new spectests. |
@vrurg fair enough, I should have re-read the original discussion before answering. |
|
Please look at the functionality offered by There are a few points I would like to make about this implementation (and potentially any implementation of this).
|
Can't promise you this for today. Would just base my opinion on your notes.
Bad idea. Both must be subclasses of their relevant counterparts. BTW, from the design point of view, I'd rather expect I was planning to add similar
This is about the same problem as we currently have with lists. Yet, manual containerization does the trick: |
I'm a bit confused on one point: How do So is the idea that we'd have two of each value type in core (eventually)? Or that this would be an alternative to the persistent types I'm working on and only one would go in core? Or is the plan that this would be a first pass at value types and would be "upgraded" to persistent types once my grant types are battle-tested enough? |
@codesections This is something I overlooked. Not totally, but haven't considered sufficiently thorough. My mistake was that I messed up the backing algorithm (as I remembered it) with data structures themselves in my mind. Anyway, at the moment I think we would need both. My preliminary view is such that The other question is that when it comes to adoption of your grant, we should, perhaps, consider different naming scheme. |
FWIW, thinking about this more and more, I think we need to re-consider the entire stack at some point. If not for 6.e, then for 6.f. Whatever the name is. We've learned a lot about all of this, and what people expect from Raku at this point. I'm seriously thinking about just closing the original issue. |
@lizmat It makes two of us. It's a scary kind of task, so you were the first to say it out loud. :) In the meantime, changing the hierarchy doesn't change the fact that positional and associative value types has their use and are needed. Re-considering the stack wouldn't make them gone. Neither it would change the fact they're basically are special cases of more generic |
Since I have closed the issue, I suggest we close this PR as well. |
Ok. I disagree, but hope we'd have it resolved in another round. |
Open the way to eventually introduce
ValueList
andValueMap
into Raku.