[Lift] Re: how 10 seconds works?

2009-08-04 Thread Stefan Scott
One of the main reasons I'm attracted to Scala is the type-safety. On Aug 3, 5:14 am, Timothy Perrett timo...@getintheloop.eu wrote: I think his point was that rails is doing un-type-safe operations at runtime which is *not* good! On 03/08/2009 08:15, marius d. marius.dan...@gmail.com

[Lift] Re: how 10 seconds works?

2009-08-03 Thread Lance Zheng
for more implementation detail, checkout liftweb source, look at the trait net.liftweb.util.TimeHelpers On Jul 31, 8:10 pm, Caesar You ucae...@gmail.com wrote: Hi everyone, i am a rookie of lift and scala. now i am cofused about sth in the lift. Line 226 in LiftSession.scala      ActorPing

[Lift] Re: how 10 seconds works?

2009-08-03 Thread Timothy Perrett
I think his point was that rails is doing un-type-safe operations at runtime which is *not* good! On 03/08/2009 08:15, marius d. marius.dan...@gmail.com wrote: The point being ... ? On Jul 31, 7:44 pm, Alex Cruise a...@cluonflux.com wrote: marius d. wrote: Implicit conversions. It's

[Lift] Re: how 10 seconds works?

2009-08-03 Thread David Pollak
On Mon, Aug 3, 2009 at 1:14 AM, Timothy Perrett timo...@getintheloop.euwrote: I think his point was that rails is doing un-type-safe operations at runtime which is *not* good! Monkey-patching was something that drove me out of the Ruby and Rails communities. The problem with monkey

[Lift] Re: how 10 seconds works?

2009-08-03 Thread Alex Cruise
marius d. wrote: The point being ... ? What Tim dpp said. :) -0xe1a --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe

[Lift] Re: how 10 seconds works?

2009-07-31 Thread marius d.
Implicit conversions. In TimeHelpers.scala we have: 1. TimeSpanBuilder which contains method minutes, seconds etc. 2. And the implicits such as: implicit def intToTimeSpanBuilder(in: Int): TimeSpanBuilder = TimeSpanBuilder(in) therefore compiler automatically applies intToTimeSpanBuilder

[Lift] Re: how 10 seconds works?

2009-07-31 Thread Alex Cruise
marius d. wrote: Implicit conversions. It's worth noting that Rails accomplishes a similar trick by adding methods to the Integer class at runtime. *shudder* :) -0xe1a --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google