Re: [Lift] Re: Lots of compile-time cruft

2009-11-17 Thread Kris Nuttycombe
Very nice! On Tue, Nov 17, 2009 at 10:16 AM, David Pollak wrote: > Okay, there's a simple answer that satisfies everyone: > > case class ParamCalcInfo(paramNames: List[String], >     params: Map[String, List[String]], >     uploadedFiles: List[FileParamHolder], >     body:

Re: [Lift] Re: Lots of compile-time cruft

2009-11-17 Thread David Pollak
Okay, there's a simple answer that satisfies everyone: case class ParamCalcInfo(paramNames: List[String], params: Map[String, List[String]], uploadedFiles: List[FileParamHolder], body: Box[Array[Byte]]) lazy val ParamCalcInfo(paramNames: List[String],

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 11:13 PM, David Pollak wrote: > > > On Mon, Nov 16, 2009 at 5:01 PM, Alex Boisvert > wrote: >> >> On Mon, Nov 16, 2009 at 4:26 PM, David Pollak >> wrote: >>> >>> Speaking of warnings, which do you prefer (see patch below): 1) Explicit types on val extractors (as

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 5:01 PM, Alex Boisvert wrote: > On Mon, Nov 16, 2009 at 4:26 PM, David Pollak < > feeder.of.the.be...@gmail.com> wrote: > >> Speaking of warnings, which do you prefer (see patch below): >> >>> >>> 1) Explicit types on val extractors (as it is today) >>> 2) One-liner with no

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Indrajit Raychaudhuri
On 17/11/09 5:26 AM, Kris Nuttycombe wrote: > > On Mon, Nov 16, 2009 at 4:33 PM, Kris Nuttycombe > wrote: >> On Mon, Nov 16, 2009 at 4:28 PM, David Pollak >> wrote: >>> Folks, >>> >>> I'm seeing a lot of: >>> [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in >>> repository sp

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttycombe wrote: > Oops... I didn't realize I'd committed the pom with that in! I've no > problem putting the extra warnings into a profile. Does Scala have an > equivalent of or support the @SuppressWarnings annotation that you > have in Java? > I'm not awa

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 4:26 PM, David Pollak wrote: > Speaking of warnings, which do you prefer (see patch below): > >> >> 1) Explicit types on val extractors (as it is today) >> 2) One-liner with no types (proposed) >> >> We could save 4 warnings... >> > > Here's the cost of the 4 warnings: > >

Re: [Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Naftoli Gugenheim
If something is a choice of a pattern match type annotation warning, or a plain asInstanceOf, my personal preference would be the match. - David Pollak wrote: On Mon, Nov 16, 2009 at 4:03 PM, Alex Boisvert wrote: > On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttyc

[Lift] Re: Lots of compile-time cruft

2009-11-16 Thread David Pollak
On Mon, Nov 16, 2009 at 4:03 PM, Alex Boisvert wrote: > On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttycombe < > kris.nuttyco...@gmail.com> wrote: > >> >> On Mon, Nov 16, 2009 at 4:28 PM, David Pollak >> wrote: >> > Folks, >> > >> > I'm seeing a lot of: >> > [INFO] Unable to find resource 'javax.scri

[Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Alex Boisvert
On Mon, Nov 16, 2009 at 3:33 PM, Kris Nuttycombe wrote: > > On Mon, Nov 16, 2009 at 4:28 PM, David Pollak > wrote: > > Folks, > > > > I'm seeing a lot of: > > [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in > > repository specs-repository (http://specs.googlecode.com/svn/maven2

[Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 4:33 PM, Kris Nuttycombe wrote: > On Mon, Nov 16, 2009 at 4:28 PM, David Pollak > wrote: >> Folks, >> >> I'm seeing a lot of: >> [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in >> repository specs-repository (http://specs.googlecode.com/svn/maven2/) >>

[Lift] Re: Lots of compile-time cruft

2009-11-16 Thread Kris Nuttycombe
On Mon, Nov 16, 2009 at 4:28 PM, David Pollak wrote: > Folks, > > I'm seeing a lot of: > [INFO] Unable to find resource 'javax.script:script-js:pom:1.0' in > repository specs-repository (http://specs.googlecode.com/svn/maven2/) > > Also, I know Kris turned on type erasure warnings because he want