[Lift] Re: Can or Box or something else

2008-12-27 Thread Kris Nuttycombe
If we all get a say, I vote for "Trit" - after all, with Full, Empty and Failure, aren't we talking about ternary logic? Or does suggesting that make me a Twit? Kris On Sat, Dec 27, 2008 at 5:08 PM, Oliver Lambert wrote: > Ha :), I really think you've let the Can out of the Box by raising this

[Lift] Re: Can or Box or something else

2008-12-27 Thread Oliver Lambert
Ha :), I really think you've let the Can out of the Box by raising this thread. Don't we all get a vote? After reading all the threads - +1 Box On 27/12/2008, at 10:06 AM, David Pollak wrote: > > > 2008/12/26 Alex Boisvert > Just brainstorming here... not sure if we're beating a dead > hors

[Lift] Re: Can liftweb support Chinese?

2008-12-27 Thread Tim Perrett
I have a pet project that has Hebrew in it and I'm not having any issues - like David said, if it utf-8 then you won't have a problem :-) Welcome to lift Cheers Tim Sent from my iPhone On 27 Dec 2008, at 10:11, OdinUshuaia wrote: > > I'm a beginner of scala and liftweb. Because I am a Chi

[Lift] Re: Partial functions

2008-12-27 Thread Charles F. Munat
I see. So I looked up orElse and I see that it (and andThen) are methods of PartialFunction. Surprisingly, these aren't discussed at all in Programming in Scala. Apparently, they're beyond the scope of the book. I understand the chaining and how this benefits the library designer (and the libr

[Lift] Re: Lift and HAppS

2008-12-27 Thread David Pollak
To the extent that Lift and HAppS both take advantage of their respective underlying languages, yes. At the practical level, they bear very little resembelence to each other. Lift sits on top of an ActiveRecord style ORM where HAppS has a monad-based mechanism for mapping in and out of persistent

[Lift] Re: Partial functions

2008-12-27 Thread Kris Nuttycombe
As David has mentioned before on this list (and as I believe is mentioned in the book as well) the concerns of a library designer and a library user are somewhat different. Allowing the user of a library to provide a partial function makes development using that library easier because the user does

[Lift] Re: Can liftweb support Chinese?

2008-12-27 Thread David Pollak
Lift supports and language as well as the JVM supports that language. I suspect that you've saved the .html file in an encoding other than utf-8. Lift assumes all xml files it loads are utf-8. Scala's xml parser gets confused sometimes if the file is saved with a different encoding. If saving wi

[Lift] Can liftweb support Chinese?

2008-12-27 Thread OdinUshuaia
I'm a beginner of scala and liftweb. Because I am a Chinese, I want to build a website with liftweb in Chinese. So I follow the wiki of liftweb. But I found that even a static html page, if there are Chinese character in it, it will handle an exception. Exception occured while processing /hello Me

[Lift] Re: Lift and HAppS

2008-12-27 Thread Marius
I don't see in what way. Lift runs in a J(2)EE web container (Jetty, Tomcat ... you name it). Br's, Marius On Dec 27, 5:17 am, Stefan Scott wrote: > Is lift very similar to HAppS? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the G

[Lift] Re: Partial functions

2008-12-27 Thread Marius
Personally I think Partial functions are great because you can chain them ... see orEse. The other nice thing is pattern matching on function arguments. For instance: val x: PartialFunction[String,String] = { case "dog" => "bark" } this PF is defined only if the argument is "dog". For anything