- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Scala Language
The main forum for discussions and news about the Scala language.
Units of Measurement — Scala Macros to the rescue?
Hi everyone,
as some people know, I have been working on the Units of Measurement functionality of metascala, where a unit is represented by a numerical value for quantity and 7 generic types representing the SI units.
The last two major things missing in my book are implementations of toString, equals and probably hashCode. They are currently not really implementable, because they depend on the generic types which are not available at runtime.
Would macros enable me to implement these operations by looking at them at compile time? E.g. implementing equals by checking that the two compared instances have the same generic types with a macro and refusing to compile if they don't?
Thanks and bye,
Simon
as some people know, I have been working on the Units of Measurement functionality of metascala, where a unit is represented by a numerical value for quantity and 7 generic types representing the SI units.
The last two major things missing in my book are implementations of toString, equals and probably hashCode. They are currently not really implementable, because they depend on the generic types which are not available at runtime.
Would macros enable me to implement these operations by looking at them at compile time? E.g. implementing equals by checking that the two compared instances have the same generic types with a macro and refusing to compile if they don't?
Thanks and bye,
Simon
classpath setByUser in Scala 2.10
Hi all,
finally I ported ScalaLab to Scala 2.10.
The reason behind the "object Scala not found"
message that I took before,
is the new
"setByUser" flag
that defaults to false and requires to set it to set to true,
in order to enable configuration of the classpath of the compiler in
2.10.
It seems to me somewhat tricky to find it !!
Best Regards
Stergios
Re: Re: Re: Re: Re:
HelloI have Order china dear friend:I have Order china 6 Apple MacBook Pro MB991LL / A 13.3w e b: bodysa.comI've received the item today
I believe you will find what you want there and have an good experienceon shopping from them.Regards!
Changes to Google Privacy Policy and Terms of Service
Changes to Google Privacy Policy and Terms of Service
Is this email not displaying properly?
View it in your browser.
Dear Google user,
InfoQ talk about Type Providers in F# 3.0
Hi everyone,
for those who haven't seen it yet, there is a great recording about F# Type Providers from Strange Loop up on InfoQ:
http://www.infoq.com/presentations/The-Future-of-FSharp-Type-Providers
It's a great source of inspiration for Scala and probably _the_ standard to which the future Scala database stuff has to be compared.
Bye,
Simon
for those who haven't seen it yet, there is a great recording about F# Type Providers from Strange Loop up on InfoQ:
http://www.infoq.com/presentations/The-Future-of-FSharp-Type-Providers
It's a great source of inspiration for Scala and probably _the_ standard to which the future Scala database stuff has to be compared.
Bye,
Simon
Type classes and implicits
Hi all,
I'm playing with type classes and implicits and don't understand why
both of the println lines below produce the compiler error:
could not find implicit value for evidence parameter of type
GenericBased[scala.collection.immutable.Set]
I surely understand the message but I don't understand why the mentioned
type could not be found. Why can't the compiler relate a Set with a
Traversable?
usejavacp = true with Scala 2.10
Hi all,
I have a problem porting ScalaLab with Scala 2.10:
when I use in Settings the usejavacp = true
it works within Netbeans correctly,
but when I run the executable standalone,
it outputs the error: "object scala not found"
In Scala 2.8 and Scala 2.9 the same code runs without problem,
without setting usejavacp=true
Can somebody identify what happens?
Regards
Stergios









