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

Динамическая мода у apply #214

Open
chestozo opened this issue Nov 8, 2013 · 1 comment
Open

Динамическая мода у apply #214

chestozo opened this issue Nov 8, 2013 · 1 comment

Comments

@chestozo
Copy link
Contributor

chestozo commented Nov 8, 2013

Иногда хочется сделать так:

match / {
  mode = "super"
  apply . mode
}

match .* super {
  "This is super"
}

Проблема ясна (непонятно, как отличить переменную mode от реальной моды).
Может тогда хотя бы встроенную функцию?

match / {
  mode = "super"
  apply(., mode)
}

match .* super {
  "This is super"
}

Или это слишком сложно и никому не нужно?

@bt4R9
Copy link

bt4R9 commented Aug 25, 2014

👍 тоже хочу такую возможность

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