HI Sana,
That was good.Thanks
On Sun, Jul 12, 2009 at 11:02 PM, SANAULLAH <sanaulla123@...> wrote:
>
>
> 2009/7/10 Mukund Deshpande
<mukund.twincling@...<mukund.twincling%40gmail.com>
> >:
> >
> >
> > Hi Rajkmar,
> >
> > Thank you...I even looked into Scala API and found that
> > Object Nil extends List[Nothing]\
> >
> > thanks,
> >
> > SMS
> >
> > On Fri, Jul 10, 2009 at 2:13 PM, rajkumargoel_786 <
> > rajkumargoel_786@... <rajkumargoel_786%40yahoo.co.in>> wrote:
> >
> >>
> >>
> >> --- In twincling@yahoogroups.com <twincling%40yahoogroups.com><twincling%
> 40yahoogroups.com>, Mukund
> >
> >> Deshpande <mukund.twincling@...> wrote:
> >> >
> >> > Hi all,
> >> >
> >> > scala> val empty=Nil::Nil
> >> > empty: List[object Nil] = List(List())
> >> >
> >> > scala> empty.head
> >> > res11: object Nil = List()
> >> >
> >> > scala> val empty=List()::List()
> >> > empty: List[List[Nothing]] = List(List())
> >> >
> >> > scala> empty.head
> >> > res14: List[Nothing] = List()
> >> >
> >> > So is List[Nothing] and object Nil ..similar?
> >> >
>
> Read a well explained article about Null, Nothing, Nil, Unit in Scala-
> http://oldfashionedsoftware.com/2008/08/20/a-post-about-nothing/
>
> Regards,
>
> Mohamed Sanaulla
> http://twitter.com/letmeknowupdate
>
>
--
Regards,
Rajkumar Goel
www.twitter.com/rajkumargoel
www.latestfever.blogspot.com
[Non-text portions of this message have been removed]