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
I think the idea was to take a real world example (JTL) (i.e. existing code). Otherwise the two cases are identical and both can be spartanized.
Is there something I missed? Anyway thanks for your interest.
BTW the spartanization here can be incorrect in some contexts; the original code can return null while the spartanized version cannot. I think the current version of the spartanizer only merges the statements without pushing down the ternary operator:
returntail.isEmpty() ? s : s + ":" + tail.toString();
Hi guys
Thanks for your tutorial
But I believe there might have something missing here in Ternarization.md
Here is another example, taken from the JTL code development. The following code excerpt uses the string s twice.
to
Correction file here
The text was updated successfully, but these errors were encountered: