Skip to content

Feature: Introduce a dynamic cast language feature #3

Description

@Lamparter

The dynamic cast language feature would allow you to dynamically cast from one type to another, no questions asked.

{
    int integer = 3;
    string text = integer; // no questions asked
}

If the types fail to cast, you will get an exception at runtime.
This is compatible with Native AOT and does not use Reflection.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions