[ 
https://issues.apache.org/jira/browse/THRIFT-5969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18077939#comment-18077939
 ] 

Dmytro Shteflyuk commented on THRIFT-5969:
------------------------------------------

Ha, good to know. I was thinking more along the lines of tuning the compiler to 
produce gofmt-compatible code. From what I see, most of the issues are 
extremely trivial to fix (as in - whitespaces around operators, some 
unnecessary brackets and empty lines). From philosophical point of view, I 
would think aligning generated code to language formatting rules would benefit 
the library posture. This is a mute point for languages that don't enforce 
style (like Ruby - every project has their own preferences, which is why we 
will only adopt a bare minimum usually shared between projects), but for Go and 
Rust it would make sense to align with the ecosystem.

> Introduce gofmt for Go library
> ------------------------------
>
>                 Key: THRIFT-5969
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5969
>             Project: Thrift
>          Issue Type: Task
>          Components: Go - Library
>            Reporter: Dmytro Shteflyuk
>            Priority: Major
>          Time Spent: 10m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to