SlideShare a Scribd company logo
1 of 1
Download to read offline
What are arguments for and against a user program building additional definitions for existing
operators, as can be done in Python and C++?
Solution
Answer:
User can define his/her own types, and make them feel like native types by implementing
operator functionality to meet his/her defined type requirements.Well this was good part. the bad
part is the programmer can implement those operator to do something that is not intuitive to the
user, for example, you can implement your own Integer type. The user would expect that the +
operator would add two Integers ,but you can implement the + operator to do anything you want,
like subtracting, not adding.

More Related Content

More from armsnoida

Explain the concept of diaspora and distinguish between voluntary and.pdf
Explain the concept of diaspora and distinguish between voluntary and.pdfExplain the concept of diaspora and distinguish between voluntary and.pdf
Explain the concept of diaspora and distinguish between voluntary and.pdf
armsnoida
 
Bullying has become increasingly problematic for school aged childre.pdf
Bullying has become increasingly problematic for school aged childre.pdfBullying has become increasingly problematic for school aged childre.pdf
Bullying has become increasingly problematic for school aged childre.pdf
armsnoida
 
What is wrong with my source file that it will not compile Is P.pdf
What is wrong with my source file that it will not compile Is P.pdfWhat is wrong with my source file that it will not compile Is P.pdf
What is wrong with my source file that it will not compile Is P.pdf
armsnoida
 
What are two possible causes of B12 deficiency Provide a detialed a.pdf
What are two possible causes of B12 deficiency Provide a detialed a.pdfWhat are two possible causes of B12 deficiency Provide a detialed a.pdf
What are two possible causes of B12 deficiency Provide a detialed a.pdf
armsnoida
 

More from armsnoida (20)

Finish the following natural deduction proofs SolutionThe two .pdf
Finish the following natural deduction proofs SolutionThe two .pdfFinish the following natural deduction proofs SolutionThe two .pdf
Finish the following natural deduction proofs SolutionThe two .pdf
 
Find the most general f. Use C for the constant of the first anti-de.pdf
Find the most general f. Use C for the constant of the first anti-de.pdfFind the most general f. Use C for the constant of the first anti-de.pdf
Find the most general f. Use C for the constant of the first anti-de.pdf
 
Explain the concept of diaspora and distinguish between voluntary and.pdf
Explain the concept of diaspora and distinguish between voluntary and.pdfExplain the concept of diaspora and distinguish between voluntary and.pdf
Explain the concept of diaspora and distinguish between voluntary and.pdf
 
Does S_2 span P_2 Solutionlets calculate the dimension of S_2.pdf
Does S_2 span P_2 Solutionlets calculate the dimension of S_2.pdfDoes S_2 span P_2 Solutionlets calculate the dimension of S_2.pdf
Does S_2 span P_2 Solutionlets calculate the dimension of S_2.pdf
 
Describe one exception to Mendelian inheritance In what year did Cha.pdf
Describe one exception to Mendelian inheritance  In what year did Cha.pdfDescribe one exception to Mendelian inheritance  In what year did Cha.pdf
Describe one exception to Mendelian inheritance In what year did Cha.pdf
 
Describe Norman’s 7 Stages of Action and Four Principles of Good Des.pdf
Describe Norman’s 7 Stages of Action and Four Principles of Good Des.pdfDescribe Norman’s 7 Stages of Action and Four Principles of Good Des.pdf
Describe Norman’s 7 Stages of Action and Four Principles of Good Des.pdf
 
Consider a system of two components, connected as shown in the diagr.pdf
Consider a system of two components, connected as shown in the diagr.pdfConsider a system of two components, connected as shown in the diagr.pdf
Consider a system of two components, connected as shown in the diagr.pdf
 
Bullying has become increasingly problematic for school aged childre.pdf
Bullying has become increasingly problematic for school aged childre.pdfBullying has become increasingly problematic for school aged childre.pdf
Bullying has become increasingly problematic for school aged childre.pdf
 
An experiment was conducted to determine whether a deficiency of carb.pdf
An experiment was conducted to determine whether a deficiency of carb.pdfAn experiment was conducted to determine whether a deficiency of carb.pdf
An experiment was conducted to determine whether a deficiency of carb.pdf
 
An abject is orbiting the Earth at 215 miles in altitude. It takes o.pdf
An abject is orbiting the Earth at 215 miles in altitude. It takes o.pdfAn abject is orbiting the Earth at 215 miles in altitude. It takes o.pdf
An abject is orbiting the Earth at 215 miles in altitude. It takes o.pdf
 
A protein that was isolated by a team of university scientists is su.pdf
A protein that was isolated by a team of university scientists is su.pdfA protein that was isolated by a team of university scientists is su.pdf
A protein that was isolated by a team of university scientists is su.pdf
 
3 Quiz Question 10 (of 11) If the cash is received before the related.pdf
3 Quiz Question 10 (of 11) If the cash is received before the related.pdf3 Quiz Question 10 (of 11) If the cash is received before the related.pdf
3 Quiz Question 10 (of 11) If the cash is received before the related.pdf
 
1.0 Points The coefficient of determination is theA. square root o.pdf
1.0 Points The coefficient of determination is theA. square root o.pdf1.0 Points The coefficient of determination is theA. square root o.pdf
1.0 Points The coefficient of determination is theA. square root o.pdf
 
1. Before installing PHP, you need to install a ____. 2.In ____ dire.pdf
1. Before installing PHP, you need to install a ____. 2.In ____ dire.pdf1. Before installing PHP, you need to install a ____. 2.In ____ dire.pdf
1. Before installing PHP, you need to install a ____. 2.In ____ dire.pdf
 
why is the ability to transmit action potentials bidirectionaly bene.pdf
why is the ability to transmit action potentials bidirectionaly bene.pdfwhy is the ability to transmit action potentials bidirectionaly bene.pdf
why is the ability to transmit action potentials bidirectionaly bene.pdf
 
Why do sterols work as rigidity buffers in the cell membraneSol.pdf
Why do sterols work as rigidity buffers in the cell membraneSol.pdfWhy do sterols work as rigidity buffers in the cell membraneSol.pdf
Why do sterols work as rigidity buffers in the cell membraneSol.pdf
 
When a sample is taken from a larger population, this suggests that .pdf
When a sample is taken from a larger population, this suggests that .pdfWhen a sample is taken from a larger population, this suggests that .pdf
When a sample is taken from a larger population, this suggests that .pdf
 
What type of DNA structure is recognized by RecG and RuvABC Do you .pdf
What type of DNA structure is recognized by RecG and RuvABC Do you .pdfWhat type of DNA structure is recognized by RecG and RuvABC Do you .pdf
What type of DNA structure is recognized by RecG and RuvABC Do you .pdf
 
What is wrong with my source file that it will not compile Is P.pdf
What is wrong with my source file that it will not compile Is P.pdfWhat is wrong with my source file that it will not compile Is P.pdf
What is wrong with my source file that it will not compile Is P.pdf
 
What are two possible causes of B12 deficiency Provide a detialed a.pdf
What are two possible causes of B12 deficiency Provide a detialed a.pdfWhat are two possible causes of B12 deficiency Provide a detialed a.pdf
What are two possible causes of B12 deficiency Provide a detialed a.pdf
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
中 央社
 

Recently uploaded (20)

TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17How To Create Editable Tree View in Odoo 17
How To Create Editable Tree View in Odoo 17
 
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
24 ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH SỞ GIÁO DỤC HẢI DƯ...
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽會考英聽
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 

What are arguments for and against a user program building additiona.pdf

  • 1. What are arguments for and against a user program building additional definitions for existing operators, as can be done in Python and C++? Solution Answer: User can define his/her own types, and make them feel like native types by implementing operator functionality to meet his/her defined type requirements.Well this was good part. the bad part is the programmer can implement those operator to do something that is not intuitive to the user, for example, you can implement your own Integer type. The user would expect that the + operator would add two Integers ,but you can implement the + operator to do anything you want, like subtracting, not adding.