Scala Programming Language
  1. Scala Programming Language
  2. SI-8052

macro is a reserved word, disallow usage as identifier

    Details

      Description

      It has been deprecated in 2.10:

      soc@desktop ~ % Entwicklung/lib/scala-2.10.3/bin/scala -deprecation
      Welcome to Scala version 2.10.3 (OpenJDK 64-Bit Server VM, Java 1.7.0_25).
      Type in expressions to have them evaluated.
      Type :help for more information.
      
      scala> val macro = null
      <console>:1: warning: macro is now a reserved word; usage as an identifier is deprecated
             val macro = null
                 ^
      <console>:7: warning: macro is now a reserved word; usage as an identifier is deprecated
             val macro = null
                 ^
      macro: Null = null
      

      It's time to disallow it for 2.11.

        Activity

        Hide
        Eugene Burmako added a comment -

        Should I submit a pull request?

        Show
        Eugene Burmako added a comment - Should I submit a pull request?
        Hide
        Simon Ochsenreither added a comment -
        Show
        Simon Ochsenreither added a comment - I'm already on it: https://github.com/scala/scala/pull/3239

          People

          • Assignee:
            Simon Ochsenreither
            Reporter:
            Simon Ochsenreither
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development