Skip to content

Document the "as _" (as-underscore) syntax for value coercion / type casting #78042

Closed
@cher-nov

Description

@cher-nov

I'm pretty sorry if I've somehow missed that somewhere in the official docs.
But that really stumbled me for a hour just now.

This syntax is mentioned there in the opening post, for example:
#45480

Metadata

Metadata

Assignees

Labels

A-coercionsArea: implicit and explicit `expr as Type` coercionsA-docsArea: Documentation for any part of the project, including the compiler, standard library, and tools

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions