- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Type checker, check
Fri, 2009-06-12, 01:33
Folks,
I've finished my basic type checking prototype. It basically checks to make sure that a particular class can be JSON serialized and is immutable (except for private vars).
The source is available at http://github.com/dpp/dpp/tree/master (for all who care or want to laugh at my code.)
Tomorrow, I'm going to generate a synthetic method that emits the JSON for the object. Any pointers to where semi-complex synthetic methods are generated in the code would be greatly appreciated.
Thanks,
David
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
I've finished my basic type checking prototype. It basically checks to make sure that a particular class can be JSON serialized and is immutable (except for private vars).
The source is available at http://github.com/dpp/dpp/tree/master (for all who care or want to laugh at my code.)
Tomorrow, I'm going to generate a synthetic method that emits the JSON for the object. Any pointers to where semi-complex synthetic methods are generated in the code would be greatly appreciated.
Thanks,
David
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
Fri, 2009-06-12, 22:47
#2
Re: Type checker, check
On Thu, Jun 11, 2009 at 5:46 PM, Paul Phillips <paulp@improving.org> wrote:
On Thu, Jun 11, 2009 at 05:33:28PM -0700, David Pollak wrote:
> Tomorrow, I'm going to generate a synthetic method that emits the JSON
> for the object. Any pointers to where semi-complex synthetic methods
> are generated in the code would be greatly appreciated.
Many are in SyntheticMethods.scala. I'd think equalsClassMethod
(equality for case classes) should be complex enough for most tastes.
See also Unapplies.scala.
Rock on!
Be careful who you mimic,
Yeah, I'm not into S&M.
there is quite a lot of older code which I'm
confident can now be done more straightforwardly (which does not mean I
typically know how to get here from there.)
--
Paul Phillips | A Sunday school is a prison in which children do
Moral Alien | penance for the evil conscience of their parents.
Empiricist | -- H. L. Mencken
i'll ship a pulp |----------* http://www.improving.org/paulp/ *----------
--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Git some: http://github.com/dpp
On Thu, Jun 11, 2009 at 05:33:28PM -0700, David Pollak wrote:
> Tomorrow, I'm going to generate a synthetic method that emits the JSON
> for the object. Any pointers to where semi-complex synthetic methods
> are generated in the code would be greatly appreciated.
Many are in SyntheticMethods.scala. I'd think equalsClassMethod
(equality for case classes) should be complex enough for most tastes.
See also Unapplies.scala.
Be careful who you mimic, there is quite a lot of older code which I'm
confident can now be done more straightforwardly (which does not mean I
typically know how to get here from there.)