- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
naming conflict on clojure method
Fri, 2010-12-24, 00:54
I'm playing around with clojure in my project and just noticed the
.var function throws an error being that it's a keyword in scala. I'm
not sure how to handle this as this is an external library outside the
realm of my code. I guess I could always put this part in java, but I
was wondering if anyone else has hit similar problems with better
solutions.
val editorFn = RT.var("user", "foo")
[error] /home/stratton/josh_projects/sunshine-client/src/main/scala/sunshine.scala:171:
identifier expected but 'var' found.
[error] val editorFn = RT.var("user", "get-ruby-editor")
val editorFn = RT.`var`("user", "foo")
Ken