You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi! i'm working through adding mox builder support to my slack-blocks data structure library and can't find a way to call a nullary function; if i had:
Of your proposed options, I think I might the last one the most. The first conflicts with punned attribute/binding names, so I don't it would work. The second is going to be painful for users and would conflict with attributes that accept a single () argument (the curly braces could just be a block). The third might work but I'm not sure whether you can actually reference a binding named _ or whether it's permanently unbound.
One other perk of the fourth option (<Foo::build bar() />) is that it might work for attributes with more than one argument? You might have a builder which takes two arguments in addition to the receiver, and this would probably make it clear what's happening.
It might be tricky to implement with the current parser, not sure. Feel free to give it a shot!
hi! i'm working through adding mox builder support to my slack-blocks data structure library and can't find a way to call a nullary function; if i had:
My expectation is that there would be some syntax to invoke bar:
The text was updated successfully, but these errors were encountered: