-
Notifications
You must be signed in to change notification settings - Fork 69
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
Formatting issues and changes between 1 and 2 #880
Comments
Some changes seem like new quirks, though they don’t actually affect semantics, like - (!tree.constant) || tree.val == constant_list[node_index.val::UInt16]
+ (!tree.constant) || tree.val == constant_list[node_index.val:: UInt16] |
Besides the ones mentioned in the other issues at the one in the comment above are there any other ones in the diff that are also quirks? |
I'm seeing several new kinds: open(path, "w") do io
- TOML.print(io, data)
+ return TOML.print(io, data)
end node_sample_size =
- rand(rng, 1:(nv(base_proposal.grid_graph) - length(base_proposal.rez_assets))) - 1
+ rand(rng, 1:(nv(base_proposal.grid_graph)-length(base_proposal.rez_assets))) - 1 - known_nodes = known_nodes[.!to_purge, :]
+ known_nodes = known_nodes[.! to_purge, :] [:FrEnode, :ToEnode] =>
(FrEnode, ToEnode) ->
(FrEnode == from.id && ToEnode == to.id) ||
- (FrEnode == to.id && ToEnode == from.id),
+ (FrEnode == to.id && ToEnode == from.id),
branches, - branches.Foooooooo[to_impute] .=
- get_foooooooo.(branches.Voltage[to_impute], branches.Distance[to_impute])
+ branches.Foooooooo[to_impute] .= get_foooooooo.(
+ branches.Voltage[to_impute], branches.Distance[to_impute]
+ ) |
this one is actually more correct now since the indentation should only be applied to shortcircuit boolean expressions. In the example above it's a regular boolean expression where a true of false is returned whereas in a shortcircuit expression something else (although it can also be a boolean) is returned or done once the initial calls up to the last one are completed, i.e. |
Just pasting the diffs of some of my packages to help identify new formatting issues. These overlap with #878 and #879. I’m using BlueStyle.
As you can see, many of these are superficial changes (though some be violating Blue, not sure). However, some of these formatting changes are semantic differences like #878.
Here's the diff for SymbolicRegression.jl
The text was updated successfully, but these errors were encountered: