On 18-01-2017, Felipe Spinolo wrote:
>
> 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.

I'm not agree with that, the philosophy and the principles of Go are not 
new they are just put together and restricted to the minimum.

For example I found of lot of similarities in the Pyramid framework (in 
Python). I found it very easy to migrate apps to Go, i can keep exactly 
the same design.
I remember also the first version of Java...

I used sometimes heritage and magic in Python but not so often, the 
maintainability was getting worse by the time. Before Go i already used 
the same design of Go in Python even if i didn't know Go ! It's why when 
i found Go i knew immediately that it's for me.

So now when i still write Python code, i use Go design. First because 
it's a good design and second because it will be easier to migrate to 
Go.

Look where is going Python with type annotation. The slides of gvr about 
mypy is like a Go presentation ! He invite us to write like in Go, just 
like the zen of Python...

>
> On Monday, January 16, 2017 at 9:58:46 PM UTC-8, so.q...@gmail.com wrote:
>>
>> Just curious how often you find yourself applying idiomatic Go patterns to 
>> other languages? (JavaScript, Python, C#, Java)
>>
>> For instance returning and handling an error value as opposed to 
>> throw-try-catch. I understand this isn't the best example since try-catch 
>> exceptions are more closely aligned to panics, but I do find myself 
>> returning more error values since using Go.
>>
>>
>>
>


-- 
William

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to