Closed warownia1 closed 8 months ago
Yes, you must do that in the first order. Is a bit odd, admittedly.
On Mon, Sep 26, 2022 at 7:28 AM Mateusz Warowny @.***> wrote:
@j2sNative, when used in an expression, may not appear in the transpiled code depending on its position. For example:
boolean var1 = /* @j2sNative true || / false;
is transpiled to
var var1=true ||false;
but when the order is reversed
boolean var2 = false /* @j2sNative || true /;
then it is transpiled to
var var2=false;
A possibly related problem occurs when @j2sNative is used inside an if statement following an expression
if (false /* @j2sNative || true /) { }
becomes
if (false) {|| true}
— Reply to this email directly, view it on GitHub https://github.com/BobHanson/java2script/issues/241, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEHNCW4I4ABQQRIF42ZMZGDWAGJITANCNFSM6AAAAAAQVX5JJQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- Robert M. Hanson Professor of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want, it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
We stand on the homelands of the Wahpekute Band of the Dakota Nation. We honor with gratitude the people who have stewarded the land throughout the generations and their ongoing contributions to this region. We acknowledge the ongoing injustices that we have committed against the Dakota Nation, and we wish to interrupt this legacy, beginning with acts of healing and honest storytelling about this place.
@j2sNative, when used in an expression, may not appear in the transpiled code depending on its position. For example:
is transpiled to
but when the order is reversed
then it is transpiled to
A possibly related problem occurs when @j2sNative is used inside an if statement following an expression
becomes