--
You received this message because you are subscribed to the Google Groups "ScalaFX Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
true. `use` name is used to not conflict with Scala 2.10 `then` keyword.true. `use` name is used to not conflict with Scala 2.10 `then` keyword./*** Defines a constant value of the ternary expression, that is returned if the condition istrue. `use` name is used to not conflict with Scala 2.10 `then` keyword.*/def use(thenExpression: Int) = new NumberConditionBuilder(whenBuilder.then(thenExpression))@depretated("Use 'use' instead")def then(thenExpression: Int) = use(thenExpression)

/*** Defines a constant value of the ternary expression, that is returned if the condition istrue. `use` name is used to not conflict with Scala 2.10 `then` keyword.*/def use(thenExpression: Int) = new NumberConditionBuilder(whenBuilder.then(thenExpression))@depretated("Use 'use' instead")def then(thenExpression: Int) = use(thenExpression)

I prefer the "select" as well.
However I made a quick check on Slick http://slick.typesafe.com/ to
make sure it is not used there.
Why don't we create a form in Google Drive to query users and developers what they prefer?
To sum up. Scala 2.10 "then" is a reserve word. Its use as an identifier is deprecated. This in turn requires replacement of "then" in binding constructs like:
fill <== when(hover) then Color.GREEN otherwise Color.RED
"then" is actually a set of methods of class ConditionBuilder, so there is probably no chance for clash with other DSLs (method is invoked on an object, it is not a stand alone construct).
I think we should be making API decisions within the developer community. We are discussing this for quite a while. By now anybody who wanted to voice their decision had the time to do it.On 2/14/2013 11:08 AM, Rafael Afonso wrote:
Why don't we create a form in Google Drive to query users and developers what they prefer?
To tally the votes: there are two supporters of "use" (Alain, Rafael) and two supporters of "select" (Peter, Matthew). I have a slight preference for "select", so we can count 2 to 3 at this point (let me know if I not missing something here).
If we run into some issues or get some strong opinions other way we can still change it before final release of 1.0. I will wait one more day, till the end of day Friday, if somebody wants to change their mind. I would like to on Saturday change "then" to its successor and stage Milestone 1 with a day or two testing of downloads. The Milestone 1 release will be both for Scala 2.9.2 and 2.10.
Jarek
--
You received this message because you are subscribed to the Google Groups "ScalaFX Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scalafx-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Current preference, if I interpret email correctly, is:
select - 2 : Jarek, Peter
use - 2 : Matthew, Rafael
choose - 1 - Alain
Alain, can you confirm that you now prefer 'choose'? Otherwise we can agree 'use'.
Choose +1
-Sven
--