AP
Size: a a a
AP
CD
if (
a + b == 0
|| a + b == 1
|| a + b == 2
|| special(
a, b,
we_are_descending_to_hell(
a, b
)
)
)
O
PZ
if (
a + b == 0
|| a + b == 1
|| a + b == 2
|| special(
a, b,
we_are_descending_to_hell(
a, b
)
)
)
PZ
PZ
AK
if (
a + b == 0
|| a + b == 1
|| a + b == 2
|| special(
a, b,
we_are_descending_to_hell(
a, b
)
)
)
we_are_descending_to_hell
можно перенести запятую с предыдущей :)D
CD
PZ
if (
a + b == 0
|| a + b == 1
|| a + b == 2
|| special(
a, b,
we_are_descending_to_hell(
a, b
)
)
)
if (
0 == a + b
|| 1 == a + b
|| 2 == a + b
|| special(
a,
b,
we_are_descending_to_hell(
a,
b
)
)
)
CD
if (
0 == a + b
|| 1 == a + b
|| 2 == a + b
|| special(
a,
b,
we_are_descending_to_hell(
a,
b
)
)
)
PZ
PZ
D
PZ
CD
we_are_descending_to_hell
можно перенести запятую с предыдущей :)foo(вариант
hello
, is_cruel()
? cruel_world
: not_cruel_world
)
foo(выглядит как-то чище
hello,
is_cruel()
? cruel_world
: not_cruel_world
)
O
if (
a + b == 0
|| a + b == 1
|| a + b == 2
|| special(
a, b,
we_are_descending_to_hell(
a, b
)
)
)
bool is_special = special(
a, b,
we_are_descending_to_hell(
a, b
)
);
bool a_plus_b_evaluated_to_special_value =
std::set{0, 1, 2}.contains(a + b);
if (a_plus_b_evaluated_to_special_value || is_special)
{ /* ... */ }
D
CD
bool is_special = special(
a, b,
we_are_descending_to_hell(
a, b
)
);
bool a_plus_b_evaluated_to_special_value =
std::set{0, 1, 2}.contains(a + b);
if (a_plus_b_evaluated_to_special_value || is_special)
{ /* ... */ }