3 ms·
> No sane story for request contexts. I got tired of waiting for net/http support for x/net/context. This is moving forward. A package context would probably b
by ngrilly 11y ago
> No sane story for request contexts. I got tired of waiting for net/http support for x/net/context.
This is moving forward. A package context would probably be added to the standard library and integrated with net/http.Request:
https://github.com/golang/go/issues/14660 https://github.com/golang/go/issues/14660
How is this issue solved in Erlang/Elixir?
> Coercing Go structs into JSON and vice versus was just annoying enough.
I had the same feeling when I started using Go (coming from Python/JS, and Java/C++ a long time ago). But then I realised that I have to validate my inputs anyway, even in Python, JS or Erlang. Defining a struct and unmarshal to the struct gives me that for free in Go.
How do you solve that in Erlang/Elixir?