Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit Type Conversion #6

Open
LKlinke opened this issue Jun 10, 2022 · 0 comments
Open

Implicit Type Conversion #6

LKlinke opened this issue Jun 10, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@LKlinke
Copy link
Collaborator

LKlinke commented Jun 10, 2022

It may be a nice feature that you can write something like this

nat x;
rparam p;

x := bernoulli(1-p)

and the type check automatically detects that the conversion from Nat to Real is okay and the result is a real.

@LKlinke LKlinke added enhancement New feature or request question Further information is requested labels Jun 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants