now using the awesome golang 1.24 'iter'
This commit is contained in:
parent
8e755daca5
commit
1bc3902d98
|
@ -0,0 +1,27 @@
|
||||||
|
Copyright 2009 The Go Authors.
|
||||||
|
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions are
|
||||||
|
met:
|
||||||
|
|
||||||
|
* Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
* Redistributions in binary form must reproduce the above
|
||||||
|
copyright notice, this list of conditions and the following disclaimer
|
||||||
|
in the documentation and/or other materials provided with the
|
||||||
|
distribution.
|
||||||
|
* Neither the name of Google LLC nor the names of its
|
||||||
|
contributors may be used to endorse or promote products derived from
|
||||||
|
this software without specific prior written permission.
|
||||||
|
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@ -0,0 +1,39 @@
|
||||||
|
PLEASE ACCEPT MY APPOLOGIES FOR DOING THIS.
|
||||||
|
I DID THIS TO MAKE OLD VERSIONS OF GO WORK.
|
||||||
|
|
||||||
|
|
||||||
|
If you are reading this, I'm sorry.
|
||||||
|
|
||||||
|
GO 1.24 added 'iter' and it is awesome. I want to use
|
||||||
|
it and I've converted autogenpb to use it in the auto
|
||||||
|
generated Sort() and Gui() functions.
|
||||||
|
|
||||||
|
The problem is I have so many systems and os's to support
|
||||||
|
that I can't be sure that I can even get version 1.24 installed
|
||||||
|
which means I can't even compile the tooling I need
|
||||||
|
to figure out what is going on.
|
||||||
|
|
||||||
|
This is because there are so many embedded riscv half ass, broken,
|
||||||
|
or poorly configured enviornments that there are no known things.
|
||||||
|
Then there are all the hardware design enviornments that are
|
||||||
|
complicated. (skywater, tiny tapeout, efabless, etc devs)
|
||||||
|
|
||||||
|
It's probably going to take me all year to convert everything
|
||||||
|
and even know if I can get version 1.24 to work everywhere.
|
||||||
|
|
||||||
|
This package is more difficult than it should be because
|
||||||
|
I couldn't use:
|
||||||
|
|
||||||
|
internal/race
|
||||||
|
internal/abi
|
||||||
|
internal/goarch
|
||||||
|
|
||||||
|
I would vote against having anything in the compiler marked
|
||||||
|
as internal/ other than an example of how that feature
|
||||||
|
works for the developers that want it. It is NOT a feature
|
||||||
|
the compiler itself should use. I would suggest making
|
||||||
|
|
||||||
|
/internal/example
|
||||||
|
|
||||||
|
This package would be better as golang.org/iter but I don't
|
||||||
|
know who to ask about doing that.
|
Loading…
Reference in New Issue