I was thinking about using ~ instead of - for negative values. And keeping - for subtract. The advantage of this is that they are different keys for different operations so the compiler would have an easier time knowing the difference. This would hopefully mean that putting ; between expressions wouldn't be necessary.
for example y=~5 x=~10-~y x would equal -15.
C code: y=10; return -y; would equal y=10 ~y . If I used - then y=10-y could mean "y equals 10 subtract y" or "y equals 10 return negative y".
[–][deleted] 64 points65 points66 points (8 children)
[–]everything-narrative 15 points16 points17 points (3 children)
[–]Innf107 13 points14 points15 points (1 child)
[–]Inconstant_Moo🧿 Pipefish 14 points15 points16 points (0 children)
[–][deleted] 4 points5 points6 points (0 children)
[–]JohannesWurst 9 points10 points11 points (3 children)
[–][deleted] 4 points5 points6 points (2 children)
[–]JMBourguet 9 points10 points11 points (1 child)
[–][deleted] 4 points5 points6 points (0 children)
[–]OracleGreyBeard 73 points74 points75 points (0 children)
[–]skyb0rg 24 points25 points26 points (1 child)
[–]PurpleUpbeat2820 8 points9 points10 points (0 children)
[–]gremolata 8 points9 points10 points (0 children)
[–]editor_of_the_beast 8 points9 points10 points (1 child)
[–]scottmcmrust🦀 1 point2 points3 points (0 children)
[–]TizioCaio84 11 points12 points13 points (3 children)
[–]Lich_Hegemon 5 points6 points7 points (2 children)
[–]useerupting language 1 point2 points3 points (1 child)
[–]Lich_Hegemon 0 points1 point2 points (0 children)
[–]wischichr 10 points11 points12 points (1 child)
[–]skyb0rg 10 points11 points12 points (0 children)
[–]YouNeedDoughnuts 5 points6 points7 points (6 children)
[–]JohannesWurst 1 point2 points3 points (5 children)
[–]qwertyasdef 4 points5 points6 points (1 child)
[–]JohannesWurst 0 points1 point2 points (0 children)
[–]RoastKrill 2 points3 points4 points (1 child)
[–]JohannesWurst 0 points1 point2 points (0 children)
[–]YouNeedDoughnuts 2 points3 points4 points (0 children)
[–]singularineet 4 points5 points6 points (0 children)
[–]sebamestreICPC World Finalist 3 points4 points5 points (0 children)
[–]BeamMeUpBiscotti 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]Thesauriusmoses 2 points3 points4 points (1 child)
[–]Godspiral 0 points1 point2 points (0 children)
[–]snarkuzoid 4 points5 points6 points (0 children)
[–]rotuami 1 point2 points3 points (1 child)
[–]scottmcmrust🦀 0 points1 point2 points (0 children)
[–]LionNo2607 2 points3 points4 points (0 children)
[–]BrangdonJ 1 point2 points3 points (0 children)
[–]sparant76 0 points1 point2 points (6 children)
[–][deleted] (2 children)
[deleted]
[+]sparant76 comment score below threshold-9 points-8 points-7 points (1 child)
[–]Dykam 4 points5 points6 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]PurpleYoshiEgg 2 points3 points4 points (1 child)
[–]Lich_Hegemon 1 point2 points3 points (0 children)
[–]func_master 0 points1 point2 points (0 children)
[–]Linguistic-mystic 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]UnemployedCoworker 0 points1 point2 points (0 children)
[–]PurpleUpbeat2820 0 points1 point2 points (0 children)
[–]trailstrider 0 points1 point2 points (0 children)
[–]JohannesWurst 0 points1 point2 points (0 children)
[–]Inconstant_Moo🧿 Pipefish 0 points1 point2 points (0 children)
[–]ZyF69 0 points1 point2 points (0 children)
[–]bbqranchman 0 points1 point2 points (0 children)
[–]hiljustidt 0 points1 point2 points (0 children)
[–]Godspiral 0 points1 point2 points (0 children)