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
(It would also be nice to avoid the extra () but that's a separate issue)
The first should be achievable by having the evaluator implicitly available in scope and changing the signature of show/inspect/... to take the evaluator implicitly. @lihaoyi on Gitter said:
Mill's routing macros do not support multiple arglists IIRC
but they can be made to do so'
the fork i use in Cask supports them
The text was updated successfully, but these errors were encountered:
This can probably be done most easily by changing the code wrapper template to wrap the expression in an additional e.g. evalTask(...) call, which would leave T <!< Tasks alone and evaluate T <:< Tasks the same way that () does so
although it might still require patching ammonite's Preprocessor.scala to provide to appropriate hook for us to do this wrapping, since we may need to wrap at an expression level rather than at a block level so e.g. main.compile; main.test properly evaluates both tasks and stores their results in local bindings.
Apart from inspect and show, this would make working with the rest of Mill's tasks easier in the mill -i REPL as well
Right now it's a bit awkward:
It'd be nicer if we could do:
Or even:
@ inspect(main.compile)()
(It would also be nice to avoid the extra
()
but that's a separate issue)The first should be achievable by having the evaluator implicitly available in scope and changing the signature of show/inspect/... to take the evaluator implicitly. @lihaoyi on Gitter said:
The text was updated successfully, but these errors were encountered: