[
https://issues.apache.org/jira/browse/THRIFT-5124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17618248#comment-17618248
]
Jens Geyer edited comment on THRIFT-5124 at 10/16/22 10:01 AM:
---------------------------------------------------------------
NB. That's the exact situation I described in THRIFT-4496. Trying to implement
an "exhaustive keyword list" is doomed to fail from the beginning and it is
also deeply annoying those people who are using "proper" languages.
was (Author: jensg):
NB. That's the exact situation I described in THRIFT-4496. Trying to implement
an "exhaustive keyword list" is doomed to fail form the beginning and it is
also deeply annoying people using "proper" languages.
> Cannot use reserved language keyword
> ------------------------------------
>
> Key: THRIFT-5124
> URL: https://issues.apache.org/jira/browse/THRIFT-5124
> Project: Thrift
> Issue Type: Bug
> Components: Rust - Compiler
> Affects Versions: 0.13.0
> Environment: MacOS with thrift version 0.13
> Reporter: Chris Holcombe
> Assignee: Jens Geyer
> Priority: Major
> Fix For: 0.18.0
>
>
> When running
> {noformat}
> thrift --gen rs -out . sample.thrift{noformat}
> against a thrift file that contains a field with `From from` the generation
> fails with the error:
> {noformat}
> [FAILURE:generation:1] Cannot use reserved language keyword: "from"{noformat}
> It was my understanding that the rust library should escape all reserved
> words.
> An example thrift file:
> {noformat}
> struct From {
> 1: string name,
> }
> struct Sample {
> 1: From from,
> }{noformat}
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)