e e.g. https://github.com/waterlink/go
Hope this helps,
TC
--
Wojciech S. Czarnecki
^oo^ OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
t
> what it does would be great to understand.
You will - just read a decent book bedtime.
> x-MacBook-Pro:pkg apple$ rm -rf sftp/
This is NOT the offending repo, github.com/kr/fs is.
> # cd /Users/apple/workspace/go/src/github.com/kr/fs
Do 'git checkout master' here
then 'git pull --ff-only'
r sw = Stopwatch.StartNew();
> var tasks = new Task[taskCount];
> sw.Stop();
In an era of multicore and aggresive optimizers microbenchmarking is moot.
--
Wojciech S. Czarnecki
^oo^ OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golan
s.110).aspx]
If you still want to compare PLs, do reimplement some (heavily concurrent)
real solution avaliable in golang ecosystem in C# (you do know intimately)
Then you might compare both in production.
--
Wojciech S. Czarnecki
^oo^ OHIR-RIPE
--
You received this message because y
work gear?
Or to let your golang software get a govt mandated certification/clearence?
Or ...
> > I am trying to use the exchange algorithm called
> > "diffie-hellman-group-exchange-sha1" It looks like Go does not support it
--
Wojciech S. Czarnecki
^oo^ OHIR-RIPE
irectory and do:
'git checkout master' there. After that you may do 'go get -u' again. Rinse
and repeat. ]
--
Wojciech S. Czarnecki
^oo^ OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group
-2015/vendor-folder/
[3] as far as go compiler allows for https://github.com/golang/go/issues/16860
Hpoe this helps,
--
Wojciech S. Czarnecki
^oo^ OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from
ke code familiar with indentation one is
accustomed to.
> I always felt the reason for using tabs was to enable support for non-
> monospaced fonts and multi-width characters. A tab stop in the
> traditional sense is a linear position, not a number of characters.
--
Wojciech S. Czarnec
an'.
> I noticed that the response header is larger than japronto header.
> Response header net/http additionally includes the current date.
As said: standards.
--
Wojciech S. Czarnecki
^oo^ OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
&qu
On Sat, 29 Jul 2017 16:56:05 -0700 (PDT)
ecstatic.co...@gmail.com wrote:
> Anyway, thanks for the fun. Where is the popcorn ? LOL
Q.E.D.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
&quo
stand. Even if just for a while ;).
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubs
d possibly start browser afresh - missing post should reappear".
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
(I'm not a mod ;)
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from th
On Sat, 15 Jul 2017 09:30:39 -0700 (PDT)
Leff Ivanov wrote:
> Is there something like Vaadin, GWT, ZK in Golang world? I mean something
> to do web UIs in pure Go without the need to write JavaScript and HTML.
>
https://github.com/icza/gowut GPL3
ce. Note, that go
tooling does *not* allow symlinks!
I'd suggest keeping to go tool expectations though. Third party pm-s and
home baked scripts will not survive enough long to be on pair with evolving
genuine tool.
>
> Thanks,
> Florian
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo
github.com/bumptech/glide
Hope this helps.
> Best regards,
> Florian
>
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group
format to compiler taste on savefile.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+
here
> will be times that json may be invalid. I.e., the "int" type has 'null' as
> input.
Ah, so Go core team should puff, bow then break Go type system asap.
Just because some sloppy coder in outer world may produce invalid data
and present coder is too lazy to write proper valid
g of go just from stdlib
reading you IMO err. While usually clear and concise stdlib code
tends to be dense and sometimes 'hacky'. I personally would start
with a big complete product, or popular 3rd party library. Eg.
Hugo, Caddy, and gorilla if you're into web backend.
Hope this helps,
--
64b one (64/8).
> Could anyone tell me how I can get the same result with go playground?
You can not. Go playground uses 64b platform.
--
Wojciech S. Czarnecki
^oo^ OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" g
On Fri, 22 Sep 2017 16:58:53 -0700 (PDT)
Remus Clearwater <remus.clearwa...@gmail.com> wrote:
> So, if the reservation scheme breaks down
Then OS will not even boot.
https://www.google.com/search?q=OS+memory+management+lecture
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-R
on" line is in your .vimrc.
(default on most linux distros.)
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it,
should install Linux version of
> Go, not Windows version of Go.
OP got this hint from the Windows (> sudo apt-get install gccgo).
This is a new scenario for beginners and Go docs are not aware of it.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this m
err = getData(i)
case 3:
err = getData(i)
default:
break watch
}
}
if err != nil {
// handle common error
}
All above patterns have single err handling place yet give back information
where err was set -- something "watch&q
es as well, it is easy to read
> and understand, and it saves the programmer from line duplication.
Above at least gives to the reader visual breaks (with 'case' lines ;)
> Martin
>
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are s
py to dismiss horrors of hours of digging in huge
pile of sources just to grasp how clever and experienced my predecessor
was. With go almost everything written by others is clear and in sight.
What is not right in sight is a single incantation of go doc away.
--
Wojciech S. Czarnecki
<<
simply compile endianess variants according to GOARCH.
https://godoc.org/go/build#hdr-Build_Constraints
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this
et/2017/05/language-mechanics-on-escape-analysis.html]
[Or look at an old presentation of Dave Cheney:
https://dave.cheney.net/2014/06/07/five-things-that-make-go-fast]
Hope this helps :)
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are
өгс богино асуултыг бичсэн: "Би өөрийн хэлээр
ярьдаг хүмүүсийг хайж байна". Тэр үүнийг өөрийнхөө хэлээр асууж болох байсан.
Энэ бол зүгээр юм. Гэхдээ энэ нь англиар ярьдаг газар юм. Энд ядуу англи
хэлээр ярих нь зүгээр л зөв.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
ith 10 or more sql statements, when it
> doesn't really matter which one fails why?
If I have a thousand of similar checks where I do not care about
error details I use something like that:
https://play.golang.org/p/ig-KOi92Ku
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >&
the messages
> here: https://gist.github.com/cpmech/d2e36dcbe277cd72605f3732d79c798b
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop re
On Tue, 5 Sep 2017 00:11:02 -0700 (PDT)
martin.r...@programmfabrik.de wrote:
Ooops, bad paste to playground
['fail' logic leaked into https://play.golang.org/p/ig-KOi92Ku]
Fixed is at: https://play.golang.org/p/dHE2wlwgIL
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
s per
> report to the number of cores?
Yes it is possible. Please read
https://blog.cloudflare.com/go-dont-collect-my-garbage/
for 'howto' tips.
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Goog
r
"why I personally get to go from X/y/C++; what I do like and what I do not"
posts.
Awaiting your goki brainchild to mature and flourish :)
> - Randy
>
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed t
yer of course :).
[1] https://www.supremecourt.uk/cases/uksc-2015-0115.html
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emai
a's 'hello corporate bus' takes to compile and run.
Thank you for your work.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
o need to set that
Someone who **knows** she will need to set GOROOT likely is fully aware of
the consequences. For the beginner the "it will cause confusing errors for
you" is not a mere warning but is a precise description of reality.
@OP: Read 'never' as 'you MAY NOT set GOROOT until
ven by Interface signatures.
> Thank you in advance
> Attila
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails fro
On Fri, 11 May 2018 13:58:31 +0200
"Wojciech S. Czarnecki" <o...@fairbe.org> wrote:
Errata: of course body is still over condition check in
for { body; if !(condition) {break} }
construct.
https://play.golang.org/p/yHFPIYIpcfp
--
You received this message because yo
Though last example is not in Go's "readability first" spirit.
https://play.golang.org/p/8AKokpQWxkr
> Hugh Fisher
>
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts&quo
ed javascript what in turn allows
for communication between your ui markup and your go code.
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this
e
If you are brave enough you may also learn vim editor:
https://ftp.nluug.nl/pub/vim/pc/gvim81.exe
I respect you, your sincerity and your will to learn young man. Keep on!
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
P.S. I urge someone with Windows envi
cluding university / university of technology ones...
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send
it is possible IMO to write an exploit
using Go tools. Not relevant though.
> Eric.
>
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and
are meant as introductory ones. First one
has many exercises for the freshmen.
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group
inaries may just list versions and compare
sp levels with ones at the source repo. If there is higher spN,
we will know something is amiss immediately - without grepping
changelogs for a CVE lines.
m0.2c
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message be
t; wrote this just
because he could. His older self longs much for ternaries, pre/post
increments, do{}while and a few other things but is so happy that young
rookies can't pollute code he is responsible for in ways he himself once
did. ;)
FYC
> R. Mark Volkmann
> Object Computing, Inc.
--
hir/bplint
Bplint docs: https://godoc.org/github.com/ohir/bplint
Bitpeek package: https://github.com/ohir/bitpeek
Bitpeek docs: https://godoc.org/github.com/ohir/bitpeek
Enjoy!
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribe
.
2x faster than fmt.Sprintf with string output.
3x faster with its native []byte output.
MIT license.
Repo: https://github.com/ohir/bitpeek
Docs: http://godoc.org/github.com/ohir/bitpeek
Enjoy!
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message
sed would be against sacred
readability of Go code. See Jan Mercl's reply for details.
PS. Try [https://racket-lang.org/].
They allow every one to write code readable only by the very same person. ;)
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message becau
; warts like this make the change to modules an unwelcoming experience
> for Go developers.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group a
ent it prints 0.018¤ (using 5/4 rounding
rules). The -500µ¤ goes to wherever local accounting law imposes on me.
Surely with pennies I'd do same thing ;)
> For financial applications you should use decimal floating-point numbers.
And soon see pink slip. Or even go to jail.
> Manlio
>
--
my wishes now, I want 'em come to life badly.
Let Morpheus do his work.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails
. (On any linux distro have over
3000).
Why on earth keep on ascii?
IPA: ʅ ʧ ʭ (0x285, 0x2a7, 0x2ad)
Latin-E: « » ¦
Latin-A: Ħ ŧ Ŧ Ɏ
Latin-B: ǁ ǂ
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
As empty criticism is bad, I felt compelled to give a consistent*
counter-proposal. One that can make my "Craftsman wishes"
code from previous post compile and run.
Draft is available at https://github.com/ohir/gonerics
Both criticism and applauds are welcome.
--
Wojciech S. Czarnec
terface) one. Now common
checks are factored out and all "checkable" structs have 'IsOK' methods that
call relevant series of "generic" checks but this would not be done without
previous translation from hierarchy to separate typed funcs)
Good luck!
--
Wojciech S. Czarnecki
<<
lers)
https://github.com/google/flatbuffers
> thanks in advance, srini
>
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop
java.util.AbstractSequentialList
>>>java.util.LinkedList
>>>Implemented Interfaces: Serializable, Cloneable, Iterable,
>>> Collection, Deque, List, Queue
>> Draft is available at https://github.com/ohir/gonerics
TC
--
Wojciech S. Czar
.com/ohir/gonerics
> (With contracts I'm doubly sure it can't be done, as the contract for Min
> would have to permit both Less and <, so then Min(X) would only be allowed
> for types X having both Less and <.)
TC,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You r
) item in the path
> collection?
>
No. Go get uses first one. You may execute go tool setting process'
environment as for any other unix executable:
GOPATH=/some/path go get reposite/user/package
Then package will be installed in /some/path/src/reposite/user/package
--
Wojciech S. Czarnec
P.S. If you need line numbers you may annotate input with grep:
$ grep -n file.go | iconv -f utf7 2>&1 | tail -1
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts&
d some time fighting it on CGG threads - in hope that
he will not waste his.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop rece
oc, but docs
# come from the -goroot $mirror_path/go4doc
> but I'll settle for easy access to docs for older versions.
hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts
here you'll find https://dl.google.com/go/go1.11.1.linux-amd64.tar.gz link.
Uninsatll your ancient debian packages before.
> Lasse
hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google G
form of contract. As much as CGG's "for type".
Ah, and CGG has one less new keyword ;) But I like your approach.
Right after mine's.
TC,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"
Java [1].
They want it being a rotting corpse by the Jan.2020 deadline.
And it augurs well for all Gophers ;)
[1] https://www.oracle.com/technetwork/java/eol-135779.html
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google G
: I'll consider Burak Sedar's **like Type** within CGG contract.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from
yself. Here is better. At least
for mail list subscribers.
TC,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send
troll. I called yours Java advocacy on Go lists
**trolling** - pointing
to the excerpts from the definition. The only point that slipped to the excerpt
but shouldn't,
was "to sow discord". I apologize for that slip.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You re
ry size
of Go's.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegro
While we are at errors, I think that the most consequential error of Go1 spec
was Error, the name. Had the expected wrongs were named correctly as Fails
I would be happy; and some others would likely be happier too.
Just a fleeting thought.
--
Wojciech S. Czarnecki
<< ^oo^ >&g
>
[library]
You can try to leverage existing C implementation of Go channels for
the wrapper:
https://github.com/tylertreat/chan
[IDNK if these are still functioning with go1.11, ofc]
Example:
https://github.com/matiasinsaurralde/cgo-channels
> Best,
> changkun
>
Hope this helps
s?
(Its current state of affairs, btw).
@Christian
Read other threads' replies made from reng...@ix.netcom.com, esp ones of
"java's better" attitude, before you start to write a reply to an unfounded
critique. Fighting someone else's straw man makes no sense at all.
[1] https://
s (i.e. where the
final owner of rounded off micropennies is known :)
The decimal floats libraries are ok, esp. for analytics purposes but for
typical money calculations old "use ints, Luke" ways are both faster and
more error-prone. YMMV ofc.
> Manlio
--
Wojciech S. Czarnecki
&
On Sun, 2 Sep 2018 20:11:40 +0200
"Wojciech S. Czarnecki" wrote:
> error-prone
s/error-prone/error-proof/ of course. Though this slip tells me that in fact
either way (use ints/use libs) has its error-prone spots.
Peace,
--
Wojciech S. Czarnecki
<< ^oo^ >> OH
On Sun, 2 Sep 2018 15:54:08 -0700 (PDT)
José Colón wrote:
> if a package that could provide similar ease of use in performing
> infinite precision calculations would be a good idea
https://github.com/ericlagergren/decimal
It does not fit into stdlibs imo.
--
Wojciech S. Czarnecki
I moved reply to the separate thread.
Subject: "Is "Craftsman's approach" proposal generic enough?"
https://groups.google.com/d/msg/golang-nuts/FOGMEFlL04s/kGQ9mKSsCgAJ
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are
d by
the author of the code constraints on ALL of
"in" typeholders. [conjugated]
All constraints in for type contract must be
fulfilled by the substituted type for it to
pass.
==
Seem that it is not enough clear :(
Should the "Terms"
ject code will have at most as many variants as M
and N have different base types / for-type-cases at most.
It further can be size-optimized by factoring out type-sized operations
reusing a given code chunk for more than one base/case.
Hope this helps,
--
Wojciech S. Czarnecki
<< ^o
as x any struct with Value field that happens
to be int based. So Ticket (s) of below can be webo.Summed too.
type Reward int8
type Ticket struct {
n string
Value Reward
}
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subsc
most one default case and it may appear
:: anywhere in the "switch" statement. A missing switch expression is
:: equivalent to the boolean value true.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Grou
fires
6. commit state (results of batch) "n"
n += 1;
goto loop
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this grou
m under our feet.
> Any advise will be most appreciated.
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receivin
ilder
box to get out of sync. Esp if all use git. Even with fossil-scm central repo
and
its autosync caps its still possible.
Note that IMO, though ;)
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
hat your client is concerned about
security, not about connectivity.
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this gro
nts.
[1] https://github.com/magefile/mage
[2] https://github.com/golang/go/issues/28152
hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group
older hmac alone.
See https://en.wikipedia.org/wiki/Galois/Counter_Mode
> > --Unilocal
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe f
On Thu, 3 Jan 2019 06:24:24 -0800 (PST)
伊藤和也 wrote:
> When to use panic?
When your code can NOT safely proceed.
I.e. if some error state is not recoverable.
You should NOT use panic in a library you write for others.
Hope this helps,
--
Wojciech S. Czarnecki
<< ^oo^ >
On Tue, 8 Jan 2019 21:05:00 -0800 (PST)
pdbw58...@gmail.com attached a screenshot:
https://www.google.com/search?q=how+to+copy+and+paste+text
> [image: Screen Shot 2019-01-09 at 12.03.04 PM.png]
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this mess
helps.
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to golang-nuts+unsubscr...@googlegroups.com.
F
for reader**.
Constraint list is not closed. Only restriction on this list is that a
constrain (as for now) must be expressed as **known** Go
construct involving a type or part of it (ie field). No operators or code.
>
> Ian
TC,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
Y
k off on my doom premonitions, at
least entirely, at least now. I apologize again for heavy words. Don't take
them personally.
> Thanks.
>
> Ian
TC
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
ontract
- `for type` switch
- a bunch of constrains. But ALL for type constraints are based
on already familiar Go type definitions and casts.
>
> Ian
TC,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to t
Sum method
func (x type []K) Sum() (total type K) {
for type K range int64(), float64(), complex128() // whole contract
for _, v := range x {
total += v.Value
}
return
}
Sum func differs only in signature:
func Sum(x type []K) (total type K) {
>
> Ian
--
Wojciech S.
o
virtualzed. i.e. giving info just about instance.
> Thanks,
> Leigh
>
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receivi
eConstraint".
func maMustFMA(a, b, c type T) type T {
for type (
T = float64()
T = someConstraint //
)
// ...
}
Thanks in advance for the answer
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google
On Sat, 15 Sep 2018 11:53:51 +0200
"Wojciech S. Czarnecki" wrote:
> With CGG `for type` contracts now you can use constraint
> that allows for any custom type of base float64
Ie. **precisely** castable to a base of float64, so
substitute type T with base of float32 will be tr
On Mon, 17 Sep 2018 11:18:51 -0700 (PDT)
> Eric Johnson
>> jucie.andr...@zanthus.com.br
I hope that the team will make an informed decission and assesment taking
into account both the opinion of the community and its good ideas to make
something simpler. See all community proposals at
.org/ukelele
> https://github.com/bcmills/extra-keyboards-for-chrome-os/tree/custom-sequences
> ² https://github.com/samhocevar/wincompose
Thx for sharing :)
TC,
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed t
osal.
It just can't be read by a human. Compiler would cope with that.
> Manlio
>
--
Wojciech S. Czarnecki
<< ^oo^ >> OHIR-RIPE
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receivi
[Bcc: drchase]
On Wed, 12 Sep 2018 10:55:26 +0200
"Wojciech S. Czarnecki" wrote:
> func Min(a, b T) T {
`func Min(a, b type T) type T` of course.
Late correction but needed.
> for type switch {
> case T func(T) Less(T) T:
> return a.Less(b)
> }
>
1 - 100 of 252 matches
Mail list logo