Search the web
Sign In
New User? Sign Up
twincling · Twincling Technology Foundation, India
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
List[Nothing] and object Nil   Message List  
Reply | Forward Message #6340 of 6440 |
Re: [twincling] Re: List[Nothing] and object Nil

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



Sun Jul 12, 2009 5:32 pm

sanaulla_123
Offline Offline
Send Email Send Email

Forward
Message #6340 of 6440 |
Expand Messages Author Sort by Date

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:...
Mukund Deshpande
electrifying...
Offline Send Email
Jul 10, 2009
5:39 am

... HI Mukund, We Know that ,Type Nothing is subtype to every other type in scala. meaning Like we know that Object is super type of all objects in java, ...
rajkumargoel_786
rajkumargoel...
Offline Send Email
Jul 10, 2009
8:44 am

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,...
Mukund Deshpande
electrifying...
Offline Send Email
Jul 10, 2009
11:13 am

... Read a well explained article about Null, Nothing, Nil, Unit in Scala- http://oldfashionedsoftware.com/2008/08/20/a-post-about-nothing/ Regards, Mohamed...
SANAULLAH
sanaulla_123
Offline Send Email
Jul 12, 2009
6:18 pm

HI Sana, That was good.Thanks ... -- Regards, Rajkumar Goel www.twitter.com/rajkumargoel www.latestfever.blogspot.com [Non-text portions of this message have...
rajkumar goel
rajkumargoel...
Offline Send Email
Jul 13, 2009
1:14 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help