Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

test-suite feature: generate well-typed Exprs #13

Closed
mhuesch opened this issue Nov 9, 2020 · 1 comment
Closed

test-suite feature: generate well-typed Exprs #13

mhuesch opened this issue Nov 9, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@mhuesch
Copy link
Owner

mhuesch commented Nov 9, 2020

this is a little tricky.
two approaches come to mind:

  1. generate terms using the untyped generator, call infer them on them, & discard not-well-typed ones.
  • seems inefficient - we will probably rarely generate a well-typed Expr of any non-miniscule size.
  1. define a new type-directed generator.
  • seems hard, but doable.
  • here we might generate a Type first, and then use that to guide generation of an Expr which fits the type.
  • I imagine there's research literature about doing this, but I am currently ignorant of it.
@mhuesch mhuesch changed the title generating well-typed Exprs generate well-typed Exprs Nov 9, 2020
@mhuesch mhuesch added the enhancement New feature or request label Nov 9, 2020
@mhuesch mhuesch changed the title generate well-typed Exprs test feature: generate well-typed Exprs Nov 9, 2020
@mhuesch mhuesch changed the title test feature: generate well-typed Exprs test-suite feature: generate well-typed Exprs Nov 9, 2020
@mhuesch
Copy link
Owner Author

mhuesch commented Apr 13, 2021

migrated to neighbour-hoods/rep_lang#21.

@mhuesch mhuesch closed this as completed Apr 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant