Skip to main content
Notice removed Reward existing answer by Qix - MONICA WAS MISTREATED
Bounty Ended with njuffa's answer chosen by Qix - MONICA WAS MISTREATED
Notice added Reward existing answer by Qix - MONICA WAS MISTREATED
Bounty Started worth 300 reputation by Qix - MONICA WAS MISTREATED
edited title
Link
Aaron Hall
  • 6k
  • 4
  • 27
  • 47

Why was the caret used for XOR instead of exponentizationexponentiation?

Rollback to Revision 2
Source Link

I'm designing a programming language, and I need some guidance on syntax.

Not that it's really a problem for anyone that has faced this syntactic issue before, but I see a wild amount of confusion stemming from the use of the caret (^) as the XOR operation in lieu of the widely accepted mathematical exponentiation operation.

Of course there are a lot of places where the (mis-)use of the caret is explained and corrected, but I haven't come across any definitive sources as to why the caret was given a different meaning.

Was it a matter of convenience? An accident? Obviously the reasoning could be different for the various languages, so information in any regard would be insightful.

I'm designing a programming language, and I need some guidance on syntax.

Not that it's really a problem for anyone that has faced this syntactic issue before, but I see a wild amount of confusion stemming from the use of the caret (^) as the XOR operation in lieu of the widely accepted mathematical exponentiation operation.

Of course there are a lot of places where the (mis-)use of the caret is explained and corrected, but I haven't come across any definitive sources as to why the caret was given a different meaning.

Was it a matter of convenience? An accident? Obviously the reasoning could be different for the various languages, so information in any regard would be insightful.

Not that it's really a problem for anyone that has faced this syntactic issue before, but I see a wild amount of confusion stemming from the use of the caret (^) as the XOR operation in lieu of the widely accepted mathematical exponentiation operation.

Of course there are a lot of places where the (mis-)use of the caret is explained and corrected, but I haven't come across any definitive sources as to why the caret was given a different meaning.

Was it a matter of convenience? An accident? Obviously the reasoning could be different for the various languages, so information in any regard would be insightful.

Tweeted twitter.com/StackProgrammer/status/779299680341651456
added 63 characters in body
Source Link
Robert Harvey
  • 200.1k
  • 55
  • 468
  • 679

I'm designing a programming language, and I need some guidance on syntax.

Not that it's really a problem for anyone that has faced this syntactic issue before, but I see a wild amount of confusion stemming from the use of the caret (^) as the XOR operation in lieu of the widely accepted mathematical exponentiation operation.

Of course there are a lot of places where the (mis-)use of the caret is explained and corrected, but I haven't come across any definitive sources as to why the caret was given a different meaning.

Was it a matter of convenience? An accident? Obviously the reasoning could be different for the various languages, so information in any regard would be insightful.

Not that it's really a problem for anyone that has faced this syntactic issue before, but I see a wild amount of confusion stemming from the use of the caret (^) as the XOR operation in lieu of the widely accepted mathematical exponentiation operation.

Of course there are a lot of places where the (mis-)use of the caret is explained and corrected, but I haven't come across any definitive sources as to why the caret was given a different meaning.

Was it a matter of convenience? An accident? Obviously the reasoning could be different for the various languages, so information in any regard would be insightful.

I'm designing a programming language, and I need some guidance on syntax.

Not that it's really a problem for anyone that has faced this syntactic issue before, but I see a wild amount of confusion stemming from the use of the caret (^) as the XOR operation in lieu of the widely accepted mathematical exponentiation operation.

Of course there are a lot of places where the (mis-)use of the caret is explained and corrected, but I haven't come across any definitive sources as to why the caret was given a different meaning.

Was it a matter of convenience? An accident? Obviously the reasoning could be different for the various languages, so information in any regard would be insightful.

Post Reopened by svick, Qix - MONICA WAS MISTREATED, Bart van Ingen Schenau, JacquesB, Thomas Owens
edited tags
Link
Bart van Ingen Schenau
  • 76.7k
  • 20
  • 125
  • 189
Loading
Post Closed as "Opinion-based" by Robert Harvey, David Hammen, Telastyn, gnat, dagnelies
Source Link
Loading