Yes. Can you suggest a good place for it or submit a pull request (you
can edit the manual directly in a browser to create a pull request
https://github.com/JuliaLang/julia/tree/master/doc/manual)?

On Mon, May 5, 2014 at 2:29 AM, Michele Zaffalon
<[email protected]> wrote:
> Now it is clear, thank you.
> Wouldn't it make sense to add it to the docs?
>
>
>
> On Mon, May 5, 2014 at 8:11 AM, Jameson Nash <[email protected]> wrote:
>>
>> Nothing is the type of nothing. An empty return statement implicitly
>> returns nothing.
>>
>> julia> isa(nothing, Nothing)
>> true
>>
>> julia> nothing === Nothing()
>> true
>>
>> None is the type union representing the absence of Any type. You
>> cannot have an instance of type None.
>>
>> julia> Nothing <: None
>> false
>>
>> julia> None <: Nothing
>> true
>>
>> julia> Nothing <: Any
>> true
>>
>> julia> Any <: Nothing
>> false
>>
>> On Mon, May 5, 2014 at 1:55 AM, Michele Zaffalon
>> <[email protected]> wrote:
>> > I could not see anything in the docs and I could only understand the
>> > "nothing" keyword:
>> >
>> > julia> function f()
>> >        return
>> >        end
>> > f (generic function with 1 method)
>> >
>> > julia> f()==nothing
>> > true
>> >
>> > julia> nothing==Nothing
>> > false
>> >
>> > julia> nothing==None
>> > false
>> >
>> > julia> Nothing==None
>> > false
>> >
>> > julia> Nothing==Nothing
>> > true
>> >
>> > What is the meaning of Nothing and None?
>> >
>> > Thank you,
>> > michele
>
>

Reply via email to