David Peter
David Peter
I thought about implementing this as a FFI function, but haven't thought it through. Can provide more information later
So I was thinking that we could do ``` fn inspect(x) -> T ``` in the prelude and then implement `inspect` using the FFI. I think there's currently no easy...
> We also need to print the span where the call originated, am I right? That would be great. > Thus, we would need to pass the spans of all...
If we can make this work without introducing ambiguities, let's do it.
You could probably start experimenting with this by sending something like the following to the numbat CLI, instead of just the user-expression (`10km to m`): ```py let user_expr = #...
> [Here](https://gist.github.com/joshop/925bc867fc76141ad1bd85ed23908a29) is a module I made for using Numbat with GregTech, a Minecraft mod that adds some technological systems. This includes a simplified system of electric energy distribution. This...
> I wish that I could assign types to structs (e.g. `Vec3` and `Matrix3`), since that would allow me to automatically handle unit conversions and not worry about inputting my...
I'm fine with adding raw strings to the language eventually. But I'm questioning if this is the right time? Do we have concrete use cases for raw strings? I tend...
> I couldn't do because the string contained `{` and `}` characters. I remembered the conversation, but not this use case. Given that we don't have Python-style `f"…"` strings for...
I'm inclined to say we should use the Python syntax since we use `#` for comments… which could be confusing/problematic?