-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Custom @escape functions #271
Comments
For reference, jaq implements it like this: $ jaq -n 'def @upcase: ascii_upcase; "world" | @upcase "hello \(.)"'
"hello WORLD" |
Pretty cool - although at that point, I think we may as well just redefine the -"world" | @upcase "hello \(.)"
+"world" | "hello \(. | upcase)" |
@myaaaaaaaaa now jqjq does it the same way at jaq 🥳 but as you say even more general would be nice but then would we extend the the standard library with all the existing formats as functions minus the "@"? 🤔 |
Yes, that would be one of the pitfalls of this method - mainly the redundant |
Something like this?
The text was updated successfully, but these errors were encountered: