$ cd foo
$ go mod init example.com/foo
$ touch foo.go
32 karma · joined November 6, 2019
$ cd foo
$ go mod init example.com/foo
$ touch foo.go
I can't check how it looked 15 hours ago.
Makes me wonder if it was manually corrected and is thus a fake example now.
- performance sec/op, geomean -14.51%
- throughput B/s, geomean +25.99%
- regexredux-dna, wall time: -63.4%
This is an assumption and it's IMHO false. Go creators watched all the research, probably closely, lived with its results and were not happy with what they get. Their experience reminded them that less features in a PL make it arguably less expressive, sure, but in the same time it makes it faster to learn and master, easier to read and debug. Writing tools is simpler if a parser for your language can be hacked over the weekend from scratch, etc.
At the end of the day its a matter of personal preferences, but it has, IMO, nothing to do with "ignoring all research in programming languages", quite the opposite.
There's a long shot between "not specified" and "uniformly random".
Please let me know if it did not help, thanks.
How to combine sum types and a precise garbage collector?
It does not seem bogus to me. Values in a map are not addressable for a good reasons. It allows more freedom in implementing a map. Arrays, on the other hand, are specified to be continuous in memory, hence the implementation is set in stone.
Also, non-existent items of a map return the zero value as specified. Now assume the map items are addressable. What exactly should happen if you refer to a field of a map item that is not in the map? Is there a possibility that is not surprising?
Go's os.File is not a plain file descriptor. It can be safely closed more than once and will close the underlying FD only the first time the .Close() method is called.
Swift and Go do not belong to that list.
3) Go specification requires UTF-8 in only one place: the encoding of Go source files string literals.
2) Pure ASCII is a subset of UTF-8, ie. pure ASCII _is_ valid UTF-8. There is _no_ more work and there are _no_ security problems when working with pure ASCII as UTF-8, because that's what it is.
CGo-free SQLite for Linux: https://godoc.org/modernc.org/sqlite