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

Convert 'Let.return ()' to 'Lwt.return_unit'. #288

Merged
merged 1 commit into from
Nov 1, 2016
Merged

Convert 'Let.return ()' to 'Lwt.return_unit'. #288

merged 1 commit into from
Nov 1, 2016

Conversation

rneswold
Copy link
Contributor

@rneswold rneswold commented Nov 1, 2016

for%lwt and while%lwt should use Lwt.return_unit to avoid extra allocations.

@aantron aantron merged commit 33c3152 into ocsigen:master Nov 1, 2016
@aantron
Copy link
Collaborator

aantron commented Nov 1, 2016

Thanks again!

These may be deprecated in the future.

FYI GH isn't associating your recent commits with your username, but you've committed with a different email before. Not sure if this is intentional/it matters to you, just a heads up.

@agarwal
Copy link
Contributor

agarwal commented Nov 1, 2016

Might be a good idea to add a .mailmap file to this project.

@aantron
Copy link
Collaborator

aantron commented Nov 2, 2016

That's cool, didn't know about .mailmap before. Does GitHub read and use it?

@rgrinberg
Copy link
Contributor

While I agree that flambda will make the various return_* functions useless in the future. I don't quite see the benefit of getting rid of them as aliases. All it would is cause pointless breakage for packages down the road without any real gain. As after all, there's nothing harmful about these specializations and they don't impact the evolution of Lwt in any way.

@rneswold
Copy link
Contributor Author

rneswold commented Nov 2, 2016

@aantron :

These may be deprecated in the future.

Cool! Good to know.

FYI GH isn't associating your recent commits with your username, but you've committed with a different email before. Not sure if this is intentional/it matters to you, just a heads up.

Thanks. Although I created this as a personal account, I've been using my repos at work so, occasionally, changes are being associated with my work email.

I added it as an additional address, so maybe it'll be less confusing (not sure what GH does with multiple email addresses.)

@aantron
Copy link
Collaborator

aantron commented Nov 2, 2016

@rgrinberg: Agreed. I will not actually remove them while I suspect there is code using them, that is compatible with the contemporary Lwt. I would guess the time scale for removing them is years to forever. I will fix the wiki :p

@rneswold: Seems adding the email fixed it :)

@agarwal
Copy link
Contributor

agarwal commented Nov 3, 2016

That's cool, didn't know about .mailmap before. Does GitHub read and use it?

Not sure if GitHub supports it, but it is supported by git.

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

Successfully merging this pull request may close these issues.

None yet

4 participants