-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Allow RPC to use solc to compile solidity #1607
Conversation
[si:skip]
.stdout(Stdio::piped()) | ||
.stderr(Stdio::null()) | ||
.spawn(); | ||
if let Ok(mut child) = maybe_child { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most of the errors are discarded anyway, maybe it would look better using .and_then
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure - i think we will still end up with a scope-triangle anyway since it's not a pipeline of data refinement. we don't favour .for_each
over for
, so i'm not sure why we'd favour .and_then
over if let
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think and_then
should keep the indentation on the same level, but not really forcing it - just a hint.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it were a pure data refinement pipeline, then for sure. with a lot of faff currying locals around in tuples, i guess if might work, but the code would be less readable. feel free to demonstrate if you reckon otherwise.
Changes Unknown when pulling c0dca74 on use-solc into * on master*. |
No description provided.