Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FAQ] more Any feedback from IRC++
  • Loading branch information
stmuk committed Oct 21, 2015
1 parent c2333fb commit 91e1251
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doc/Language/faq.pod
Expand Up @@ -11,14 +11,21 @@
L<Any|type/Any> is a top level class used as a default superclass for new
classes. It 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.
languages.
Example:
my $foo
say $foo # (Any)
say $foo # (Any) note the parens indicate type object
say $foo.^name # Any
(Any) shouldn't be used to check for definedness. In Perl 6, definedness is a
property of an object. Usually instances are defined and type objects are
undefined.
say 1.defined # True
say (Any).defined # False
=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 91e1251

Please sign in to comment.