Improve discoverability of 'of' operator
This commit is contained in:
parent
7af92708af
commit
0575437762
2 changed files with 3 additions and 1 deletions
|
|
@ -588,7 +588,8 @@ can also be defined with indentation instead of ``[]``:
|
|||
|
||||
Objects provide many features that tuples do not. Object provide inheritance
|
||||
and information hiding. Objects have access to their type at runtime, so that
|
||||
the ``of`` operator can be used to determine the object's type.
|
||||
the ``of`` operator can be used to determine the object's type. The ``of`` operator
|
||||
is similar to the ``instanceof`` operator in Java.
|
||||
|
||||
.. code-block:: nim
|
||||
type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue