Make `LogicValue` `toInt`, `toBigInt`, etc. return `null` when signal is invalid instead of an Exception
Open
enhancement
good first issue
- Dominant language
- Dart
- Stars
- 489
- Forks
- 88
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 10
Description
## Motivation
Dealing with null is easier with Dart's null safety than an exception.
## Desired solution
Functions that might not have a valid int/BigInt representation due to invalid signal values (x/z) should return `int?` and `BigInt?` instead of throwing an exception when it is invalid.
## Alternatives considered
Leave as it is with exceptions thrown when invalid.
Contributor guide
Assessment
This issue has not been assessed yet.