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 continuations, e.g. by linking to a good explanation #23

Open
aantron opened this issue Jun 16, 2017 · 2 comments
Open

Introduce continuations, e.g. by linking to a good explanation #23

aantron opened this issue Jun 16, 2017 · 2 comments

Comments

@aantron
Copy link
Owner

aantron commented Jun 16, 2017

Markup.ml is written in continuation-passing style. For the vast majority of programmers on Earth, this means "using callbacks." So, I suggest renaming 'a cont to 'a callback to make the code ever so slightly more comprehensible to more people.

Good suggestions for what to rename 'a cps to are also welcome.

@aantron aantron added the easy label Jun 16, 2017
@dbuenzli
Copy link

I don't know how you use the type in question but note that continuation is much more precise than callback. I personally would be more confused by 'a callback than with 'a cont to denote a continuation.

It is certainly a noble goal to try to make things more comprehensible to more people but don't do it at the expense of preciseness and conceptual clarity. Besides it's also certainly good if these "more" people try to learn about new concepts they might initially not understand, it won't be lost time for them, it might turn them into better programmers.

@aantron aantron removed the easy label Jun 16, 2017
@aantron
Copy link
Owner Author

aantron commented Jun 16, 2017

Ok, have to agree with this. I'll turn this into an issue about using Markup.ml to teach continuations a bit, provide some good links, rather than eliminating the terminology (which is indeed correct).

@aantron aantron changed the title [trivial] Rename type alias 'a cont to 'a callback Introduce continuations, e.g. by linking to a good explanation Jun 16, 2017
@aantron aantron added this to the 0.8.2 milestone Aug 17, 2019
@aantron aantron removed this from the 0.8.2 milestone Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants