Gabriel95 / scalafx

Automatically exported from code.google.com/p/scalafx
Other
0 stars 0 forks source link

`Then' is Scala Reserved Word from 2.10 Onwards #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We can no longer use `then' as a DSL word in Scala 2.10.
The Scala compiler complains with a warning about usage, but does not abort.

We need to choose a replacement for `then' e.g.

Actually,I was thinking of other synonyms too.

color <== when (hover) afterwards Color.GREEN otherwise Color.RED

color <== when (hover) use Color.GREEN otherwise Color.RED

color <== when (hover) next Color.GREEN otherwise Color.RED

color <== when (hover) after Color.GREEN otherwise Color.RED

color <== when (hover) select Color.GREEN otherwise Color.RED

color <== when (hover) follow Color.GREEN otherwise Color.RED

color <== when (hover) perform Color.GREEN otherwise Color.RED

color <== when (hover) define Color.GREEN otherwise Color.RED

color <== when (hover) then Color.GREEN otherwise Color.RED

Original issue reported on code.google.com by peter.pi...@gmail.com on 8 Feb 2013 at 3:18

GoogleCodeExporter commented 8 years ago
See discussion on scalafx-dev for possible replacements for 'then':
https://groups.google.com/d/topic/scalafx-dev/VP7UVblSYms/discussion

Original comment by jpsacha on 18 Feb 2013 at 3:17

GoogleCodeExporter commented 8 years ago
Added `choose` as replacement for `then`. `then` marked as deprecated with 
intention to remove by 1.0.0 Milestone 3. 

Original comment by jpsacha on 20 Feb 2013 at 4:52