hellas-ai / hellas-ai/catgrad

Typechecker uses unwrap() to handle definitions

Open
#261 0 comments 0 reactions 1 assignee Claimed by @statusfailed View on GitHub
Dominant language
Rust
Stars
34
Forks
7
PR merge metrics
No merged PRs in 30d

Description

See [https://github.com/hellas-ai/catgrad/blob/master/catgrad/src/typecheck/interpreter.rs#L100]:

```rust
let lang::TypedTerm { term, .. } = self.environment.definitions.get(path).unwrap();
```

This should be a `Result::Err`, not a panic.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.