I-Language-Development / I-language-rust

The I programming language is a high level programming language written in rust.
https://i-language-rust.readthedocs.io/en/latest/
MIT License
11 stars 2 forks source link

[FEATURE] Add errors #103

Closed ElBe-Plaq closed 9 months ago

ElBe-Plaq commented 10 months ago

Is your feature request related to a problem? Please describe. The current errors from the tools subcrate don't include much information.

Describe the solution you'd like Add C-like errors. This could be done using annotate-snippets.

Describe alternatives you've considered Use either

Additional context None

create-issue-branch[bot] commented 10 months ago

Branch issue-103 created!

ElBe-Plaq commented 10 months ago

An error crate is still needed probably, so the errors won't have to be created manually everywhere. This crate could also become part of tools.

ElBe-Plaq commented 9 months ago

I can't really find a good starting point for the errors, it'll use thiserror and anyhow. I think someone else might want to do it. (Please) @Ranastra ?

ElBe-Plaq commented 9 months ago

@Ranastra said no, I'll have to do it.

ElBe-Plaq commented 9 months ago

I'd really want to add ? and Result<...> everywhere and I'll do eventually, but at the moment I'm fine with this.

ElBe-Plaq commented 9 months ago

✅ Done in https://github.com/I-Language-Development/I-language-rust/commit/503a789fba3678d64231475c8ea1da628d7c5a61.