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

Syntax for aliasing #21

Open
wizzardx opened this issue Jan 23, 2018 · 2 comments
Open

Syntax for aliasing #21

wizzardx opened this issue Jan 23, 2018 · 2 comments

Comments

@wizzardx
Copy link

Hi there.

Nim doesn't have a built-in alias command to rename identifiers to something more convenient (eg, D lang has that). But it's possible to get the same effect by using template metaprogramming.

Here's a couple of links with more info on that:

https://forum.nim-lang.org/t/2390

nim-lang/Nim#7090

https://forum.nim-lang.org/t/1515

Could you please add a section for how to do aliasing?

@QuinnFreedman
Copy link

+1. This is my biggest annoyance with nim right now

@timotheecour
Copy link

timotheecour commented Jul 30, 2019

But it's possible to get the same effect by using template metaprogramming.

it's not possible to do so reliably without the compiler patch in the linked PR nim-lang/Nim#11822, see PR for details

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

3 participants