posted 13 years ago
Hi, I'm trying to write a simple temperature conversion DSL for learning purposes.
Here is my code so far:
Temperature.scala
TemperatureScale.scala
TestTemperature.scala
I think I did pretty ok for a first attempt, but I would like to eliminate the need for the extra parenthesis if possible, so that I could use the DSL like this:
Is that possible? If so, could you guys please point the way?
Cheers