John-John Tedro

Results 376 comments of John-John Tedro

I *think* `Any` types can be constant values - if they can be represented with `ConstValue`. What would be needed for external types are two things: * The data being...

I think it's just lacking `FromValue` and `ToValue` implementations. You'd also be encouraged to use [`rune::alloc::vec_deque`](https://docs.rs/rune/latest/rune/alloc/vec_deque/index.html), and the mapping would go to the [`VecDeque` in the `collections` module](https://github.com/rune-rs/rune/blob/main/crates/rune/src/modules/collections/vec_deque.rs).

Hmm. We should really be using TryClone and not Clone in the macro that builds the getter.

The intent is to move towards a gradual typing system, where types can be required at compile time if needed. If type annotations are present and enforced, that could also...

Once `error_in_core` is stable, we'll switch.

You're making a very good point!

> how do I implement generating an IpAddr from a string, int, array of ints, etc., similar to the std IpAddr? You add the relevant methods to perform the conversion....

Thanks for the input! Sum types like `int | float` is something I want to avoid. Once type annotations is present I want to enforce strict typing. Not necessarily allow...