Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Go i16 constants are not typed as int16 #838

Open
markerickson-wf opened this issue May 31, 2017 · 1 comment
Open

Go i16 constants are not typed as int16 #838

markerickson-wf opened this issue May 31, 2017 · 1 comment

Comments

@markerickson-wf
Copy link
Contributor

I would have expected Frugal to explicitly type this as int16 in Go - https://github.com/Workiva/commitlog-frugal/blob/master/idl/commitlog_errors.frugal#L38
It produces an implicitly typed constant (in 2.2.0) - https://github.com/Workiva/commitlog-frugal/blob/master/go/gen/commitlog_frugal_api_errors/f_types.go#L40 . It just leads to some extra casts.

A field that is typed in the IDL as i16 is generated as int16, not int - https://github.com/Workiva/commitlog-frugal/blob/master/go/gen/commitlog_frugal_api_errors/f_types.go#L51 - so that seems a little inconsistent.

@Workiva Workiva deleted a comment from charliestrawn-wf Aug 8, 2017
@stevenosborne-wf
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants