Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New words: Operator Overloading #2

Open
Cleop opened this issue Mar 7, 2019 · 1 comment
Open

New words: Operator Overloading #2

Cleop opened this issue Mar 7, 2019 · 1 comment

Comments

@Cleop
Copy link
Member

Cleop commented Mar 7, 2019

Operator Overloading notes:

A specific case of polymorphism where different operators have different implementations based on their arguments.

Using operator overloading a developer can define operations (+,-,*) on custom types (not just integers).

Not currently possible in Javascript but found in C++, Scala, Ruby, Haskell, Rust

@nelsonic
Copy link
Member

nelsonic commented Mar 7, 2019

Alternative definition: a technique for confusing the heck out of people reading your code. 🙄
https://en.wikipedia.org/wiki/Operator_overloading
I'm sooooo glad Even chose to leave this out of Elm 0.19! 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants