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

Function to easily switch from function call to method call? #35

Open
LeaVerou opened this issue Jan 15, 2024 · 3 comments
Open

Function to easily switch from function call to method call? #35

LeaVerou opened this issue Jan 15, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@LeaVerou
Copy link
Member

A common type of manipulation is to transform fn(foo, bar) to foo.fn(bar) and vice versa. We'll also need it in mavoweb/mavo#1009

Would it make sense for vastly to expose a function that helps with this or should this be a Mavo util function?
Right now we don't have any modules that only work with specific node types. Do we want this to be a vastly design principle or are we fine with having more specialized helpers too?

@LeaVerou LeaVerou added the enhancement New feature or request label Jan 15, 2024
@adamjanicki2
Copy link
Contributor

It's roughly on the order of specificity of the other function we're adding in #32, so I'd be fine with including it, or we can stick it in Mavo

@LeaVerou
Copy link
Member Author

It's roughly on the order of specificity of the other function we're adding in #32, so I'd be fine with including it, or we can stick it in Mavo

I'm not so sure; #32 applies to every node, whereas this has no meaning outside of function calls.

@adamjanicki2
Copy link
Contributor

Let's just do it in Mavo 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants