jcubic / jcubic/lips

Make typecheck and typecheck-args the same order of arguments

Open
#396 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
507
Forks
45
Avg merge
11h 22m
Merged PRs (30d)
4

Description

typecheck-args is used only in few places, but both functions should have the same API.

Here is example usage:

```scheme
(typecheck "some" fn "function")
(typecheck-args (vector "pair" "nil") "some" lists)
```

typecheck-args is used with curry:

```scheme
(define numbers? (curry typecheck-args "number"))
```

That's why the first argument is type, so you can provide label and argument when calling `numbers?`

typecheck should be modified to have the same API.

Contributor guide

Open the contributing guide

Research direction

Locate the definitions and usages of typecheck and typecheck-args, then compare them with the Scheme examples in the issue. Done means both functions expose the same argument order while the curry-based typecheck-args usage remains supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
compilers
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.