[go-nuts] Re: Applying idiomatic Golang patterns to other languages?

2017-01-18 Thread omarshariffdontlikeit
I experimented using the function options (e.g. withFunc() ) in PHP. I know its unnecessary as PHP functions and methods can accept optional parameters, and I know that you cant have function types in PHP, but the approach is still so clean and self documenting I'd like to use it for much more

[go-nuts] Re: Applying idiomatic Golang patterns to other languages?

2017-01-17 Thread Felipe Spinolo
I think it's a mistake to try to apply one language's idioms to another language. I don't write Go the way I would write Java or Python, and I don't write either of them the way I would write Go. Idiomatic Go is idiomatic because it fits with the design and philosophy of Go. On Monday,