Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce format strings (for io:format etc.) and their types #3

Closed
gfngfn opened this issue Sep 12, 2020 · 1 comment
Closed

Introduce format strings (for io:format etc.) and their types #3

gfngfn opened this issue Sep 12, 2020 · 1 comment
Projects

Comments

@gfngfn
Copy link
Owner

gfngfn commented Sep 12, 2020

Types and primitives:

type format :: (o) -> o

format<$a, $b> : fun(format<$a>, $a) -> [$b]unit

Sample Usages:

f'key: ~s, value: ~p' : format<(string, $a)>
let show_mapping<$a, $b>(k : string, v : $a) : [$b]unit =
  format(f'key: ~s, value: ~p', (k, v))
@gfngfn gfngfn created this issue from a note in Sesterl (To Implement) Sep 12, 2020
@gfngfn gfngfn moved this from To Implement to In Progress in Sesterl Sep 16, 2020
@gfngfn
Copy link
Owner Author

gfngfn commented Sep 16, 2020

Added at a3aa00b.

@gfngfn gfngfn closed this as completed Sep 16, 2020
@gfngfn gfngfn moved this from In Progress to Done in Sesterl Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Sesterl
  
Done
Development

No branches or pull requests

1 participant