mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Add "Pros and cons of leveraging Go types"
parent
deb9c12945
commit
f6ae55bf0f
@ -239,6 +239,7 @@ a 'class' keyword that simply makes a struct to also be an interface to make por
|
||||
- David Vennik, "[Unjumbling Golang OOP primitives](https://gist.github.com/l0k1verloren/344956daedb434094e9af2c21ff9376c)", April 20, 2018 - The problem of the lack of structuring in OOP primitives - dummy functions and redundant boilerplate type bindings.
|
||||
- Jelte Fennema, "[Fixing the billion dollar mistake in Go by borrowing from Rust](https://getstream.io/blog/fixing-the-billion-dollar-mistake-in-go-by-borrowing-from-rust/)", June 14, 2018 - Nil pointer dereferences cause panics in production - it would be great if the type system would catch some of those.
|
||||
- Mike Schinkel, "[On Typing Strings in Go _(More Constrained vs. Less Constrained)_](https://mikeschinkel.me/2019/on-typing-strings-in-go/), March 2019, Discusses how the benefits of creating types derived from basic types are often outweighed by the need to use constant type-casting in contexts where said type casting provides no extra type safety, i.e. when casting to a less-constrained otherwise-identical type.
|
||||
- Mike Schinkel, "[Pros and cons of leveraging Go types](https://mikeschinkel.me/2019/pros-and-cons-of-leveraging-go-types/), April 2019, Discusses how great Go's type system is but tries to show how really using it can be extremely tedious and make for code that is harder-to-reason-about, so proposes an explicit `type alias` feature.
|
||||
|
||||
## Typed nils
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user