Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FAQ] explain Any is sort of like undef
  • Loading branch information
stmuk committed Oct 21, 2015
1 parent 11172ad commit 6fcaaeb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions doc/Language/faq.pod
Expand Up @@ -6,6 +6,19 @@
=head1 Language Features
=head2 What is C<(Any)>?
L<Any|type/Any> is a top level class used as a default superclass for new
classes which is often seen in a context where a variable has been defined but
not assigned where it loosely resembles the undef or null values in other
languages.
Example:
my $foo
say $foo # (Any)
say $foo.^name # Any
=head2 What is C<so>?
C<so> is a loose precedence operator that coerces to L<Bool|/type/Bool>.
Expand Down

0 comments on commit 6fcaaeb

Please sign in to comment.