Specify (i.e. decide) what is in scope for a lua {...}
block
#33
Labels
bug
documentation
improvement
Improves the way that an existing feature works, in a backwards-compatible way.
Milestone
The
lua {...}
syntax was intended as a sort of escape hatch, to allow for use of Lua libraries/methods/etc. which fundamentally don't have any way to model in Huck. However, it is currently unclear what exactly the programmer should expect to be in the Lua scope into which thelua
block will be expanded.In scope:
lua
block (e.g. function arguments, case arm bindings)string.find
,require
,io.popen
)Is this list complete? Should there be any more items? Should any of these items not be allowed?
We can probably enforce this a bit after #31.
Here is an example of a Lua interface to be wrapped in Huck (
lua_library.lua
):Huck wrapper:
The text was updated successfully, but these errors were encountered: