2009/7/10 Mukund Deshpande <mukund.twincling@...>:
>
>
> 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@...> wrote:
>
>>
>>
>> --- In twincling@yahoogroups.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