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

[WIP] investigate tryExpr proposed by krux02 #71

Closed
wants to merge 2 commits into from

Conversation

timotheecour
Copy link
Owner

@timotheecour timotheecour commented Mar 22, 2020

investigate @krux02's proposal for tryExpr, see nim-lang#12076 (comment)

@krux02 I don't see how this could be implemented with a macro:

when overloadExists(callNeedingNetwork(url)):
  setupNetwork()
  callNeedingNetwork(url)

If you disagree please provide some code.

@krux02
Copy link

krux02 commented Mar 24, 2020

Well unfortunately I think this will not work. It already doesn't work for arrays. Imported generic procs will always be hidden by local untyped template. After all this was just a quick experiment.

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.

2 participants