Conversation
There is no reason to have a submodule for constants. It is obvious that they are constants.
|
Anything flattening the namespaces is a great improvement. |
|
Hmm yeah this is fine. As for Perhaps rename |
|
but yeah utACK d7389df (but slight preference to make message full names slightly shorter). |
|
That's fair. I should put I'm also happy to rename |
|
Regarding |
|
Let's bundle this with #494 in a "dramatically break the API but don't change functionality" release after the next release. |
What do people think about getting rid of the |
|
Yeah, I think it might be reasonable to make |
Maybe we can take the occasion for |
0643aad to
6f71797
Compare
|
Yeah, I was looking for something like this for a long time!!! Few more suggestions of what can be bundled with this huge breaking change release:
|
|
@dr-orlovsky I'm definitely in favor of reexporting rustfmt is still really invasive. If there were a way we could phase it in over multiple commits or even multiple PRs I'd be much more willing to take it on. |
|
Yes -- though let's do a MSRV-only release first. |
|
I've started to bring this back to life:
If these two are well received I can do patches 4-6 as well. |
|
Probably we should close this specific PR though? |
|
Closing this, will re-do the network message stuff. |
c3e4399 Remove usage of opcodes::all (Tobin C. Harding) Pull request description: We have all of the opcodes defined in a submodule called `all`, this allows wildcard imports without bringing in the other types in the `opcodes` module. Use wildcard import `use crate::blockdata::opcodes::all::*` instead of fully qualifying the path to opcodes. ### Original PR description (left here so the thread of discussion below makes sense) The `all` module adds no value, we can remove it without loss of meaning or clarity, doing so makes the code less verbose. EDIT: After review, now includes importing with wildcard and removing the `opcodes::` path from any type starting with `OP_`. Idea stolen from: #525 (patch 7) ACKs for top commit: Kixunil: ACK c3e4399 apoelstra: ACK c3e4399 Tree-SHA512: 300511d909a25e82c563b18da1b52bcf65653cd3efd8ff32dd5b9e839dacd57924953c1745dfb5e9301fa4f9fc0cd61a075f3a3fd94f6a5a9730bca5155dfd96
Alternate/more agressive version of #518
This is a very invasive change but it's something I've wanted to do for years. Curious what others think.