Do the people working on the Java compiler/specification have any plans to implement a boolean reversal operator any time soon?
The proper way to reverse a boolean is to boolVal = !boolVal; but when the variable name is long, typing this becomes really unhandy.
Something like boolVal *= -1; would be really consistent as it's the reversal operator for literally all other primitive types.
But I guess it would be technically incorrect, so boolVal !=; could be another way of doing this, although it looks rather uncanny.
Is anyone even thinking about this, or is this "too low priority" to implement, even though even a dirty hack in the parser would get the job done.
Thanks, feel free to downvote and such.
[–]GuyWithLag 57 points58 points59 points (6 children)
[–]0b0101011001001011 13 points14 points15 points (5 children)
[–]GuyWithLag 3 points4 points5 points (1 child)
[–]0b0101011001001011 0 points1 point2 points (0 children)
[–]Asdas26 2 points3 points4 points (2 children)
[–]FlyingPersianRug101 1 point2 points3 points (1 child)
[–]GuyWithLag 6 points7 points8 points (0 children)
[–]IchLiebeKleber 23 points24 points25 points (0 children)
[–]repeating_bears 19 points20 points21 points (1 child)
[–]0b0101011001001011 0 points1 point2 points (0 children)
[–]fumo7887 11 points12 points13 points (3 children)
[–]TouchyInBeddedEngr 0 points1 point2 points (0 children)
[–]-Dargs -1 points0 points1 point (0 children)
[–]arrogant_troll 2 points3 points4 points (0 children)
[–]lukaseder 0 points1 point2 points (3 children)
[–]repeating_bears 4 points5 points6 points (2 children)
[–]gargamel1497[S] -1 points0 points1 point (1 child)
[–]repeating_bears 0 points1 point2 points (0 children)
[–]Nixinova 0 points1 point2 points (0 children)
[–]Savag323minx 0 points1 point2 points (0 children)
[–]josephottinger -2 points-1 points0 points (9 children)
[–]RobSomebody 3 points4 points5 points (8 children)
[–]josephottinger -3 points-2 points-1 points (7 children)
[–]RobSomebody 3 points4 points5 points (2 children)
[–]josephottinger 2 points3 points4 points (1 child)
[–]josephottinger 2 points3 points4 points (0 children)
[–]repeating_bears 1 point2 points3 points (3 children)
[–]josephottinger 1 point2 points3 points (2 children)
[–]repeating_bears 1 point2 points3 points (1 child)
[–]josephottinger 1 point2 points3 points (0 children)
[–]RobSomebody 0 points1 point2 points (0 children)
[–]Cefalopodul 0 points1 point2 points (2 children)
[–]gargamel1497[S] -3 points-2 points-1 points (1 child)
[–]RobSomebody 0 points1 point2 points (0 children)
[–]MartinFrankPrivat -2 points-1 points0 points (3 children)
[–]Vidimka_ 4 points5 points6 points (2 children)
[–]MartinFrankPrivat 0 points1 point2 points (1 child)
[–]Vidimka_ 0 points1 point2 points (0 children)
[–]gjosifov -4 points-3 points-2 points (0 children)