Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-434

ruby compiler should warn when a reserved word is used

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      It would be nice if the compiler would warn or fail when a reserved word is used as a struct name, service name or field name. The following names should be avoided:

      _FILE_
      and
      def
      end
      in
      or
      self
      unless
      _LINE_
      begin
      defined?
      ensure
      module
      redo
      super
      until
      BEGIN
      break
      do
      false
      next
      rescue
      then
      when
      END
      case
      else
      for
      nil
      retry
      true
      while
      alias
      class
      elsif
      if
      not
      return
      undef
      yield

      Attachments

        1. thrift-434.patch
          4 kB
          Michael Stockton
        2. thrift-434-v2.patch
          6 kB
          Michael Stockton
        3. thrift-434-v3.patch
          6 kB
          Michael Stockton

        Issue Links

          Activity

            People

              michaelstockton Michael Stockton
              michaelstockton Michael Stockton
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: