Question

Suppose you are describing a new programing language a­nd are considering the syntax of identifiers. What...

Suppose you are describing a new programing language a­nd are considering the syntax of identifiers. What are your arguments for and against making identifiers case-sensitive.

Homework Answers

Answer #1

Arguments for making identifiers case-sensitive:

  • Case sensitivity makes parsing easier.
  • It provides a cleaner syntax,
  • Semantically case-sensitivity offers a more consistent code
  • In many languages like German, Arabic it is not that simple to compare lower case and uppercase  Also many languages have letters that are not in ASCII. These makes it difficult to implement case-insensitivity
  • It requires extra work for compilers to make identifiers case-insensitive

Arguments for making identifiers case-insensitive:

  • This is more simpler as variables can be named without thinking about the case
  • In case of languages supporting case-sensitivity, two identifiers can refer to different things, which can be confusing(Name and name can point to different things)
  • Case sensitivity can lead to erroneous code if some identifiers are just different due to the case and one gets used at a point in code instead of the other.
  • Case-insensitivity makes codes less ambiguous by having one name respective of cases being used only to point to one thing
Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
using dr.racket programing language If we write a function that tests whether a list contains only...
using dr.racket programing language If we write a function that tests whether a list contains only strings, odd numbers, or even numbers, you will notice that the code that iterates through the list stays the same, with the only change being the predicate function that checks for the desired list element. If we were to write a new function for each of the tests listed above, it would be more error-prone and an example of bad abstraction. We could write...
A college is considering a new core curriculum that would require all undergraduates to study a...
A college is considering a new core curriculum that would require all undergraduates to study a foreign language. The student newspaper plans to interview several faculty members and report their opinions. Suppose that in fact 80% of the faculty support the language requirements. a) If the newspaper interviews 100 faculty members, then what is the probability that more than seventy will support the language requirement? b) If the newspaper interviews 10 faculty members, what is the probability that exactly seven...
Your firm is considering the purchase of a new office phone system. You can either pay...
Your firm is considering the purchase of a new office phone system. You can either pay $ 32000 ​now, or $ 950 per month for 46 months. a. Suppose your firm currently borrows at a rate of 6 % per year​ (APR with monthly​ compounding). Which payment plan is more​ attractive? b. Suppose your firm currently borrows at a rate of 17 % per year​ (APR with monthly​ compounding). Which payment plan would be more attractive in this​ case?
If you are considering trading in a used car for your new one, it is best...
If you are considering trading in a used car for your new one, it is best to Select one: a. not trade the car in, but rather sell it yourself over the internet. b. tell the dealer right away so he can figure your trade-in credit against the purchase price of your new car. c. negotiate the price of the new car before advising the dealer you have a trade-in. d. not be too concerned about the value given, since...
If you learn a foreign language, you can improve your compensation at work. Given you are...
If you learn a foreign language, you can improve your compensation at work. Given you are not good at learning languages, you estimate today you would need to spend $5,000 to learn a language. You then believe you can earn an extra $3,000 per year for 4 years starting *today* before you move onto a new job. (The last $3,000 occurs three years from today.) However, you will also pay back $2,000 to the company exactly 3 years from today...
Suppose you launched a new social networking website for college students to compete against Facebook and...
Suppose you launched a new social networking website for college students to compete against Facebook and Twitter. What factors should you consider in selecting the physical location of your business? How would you determine how much attention to devote to this issue in your business plan?
300 words If you are considering opening a new pizza restaurant in your community, what would...
300 words If you are considering opening a new pizza restaurant in your community, what would be the threat of new entrants? How would you evaluate Porter’s other forces for this industry? Explain.
You are considering a new product. It will cost $966,000 to launch, have a 3-year life,...
You are considering a new product. It will cost $966,000 to launch, have a 3-year life, and no salvage value. Depreciation is straight-line to zero. The required return is 20%, and the tax rate is 30%. Sales are projected at 80 units per year. Price per unit will be $40,000, variable cost per unit is $24,000 and fixed costs are $500,000 per year. Operating cash flows have been calculated for you as 642,600 per year. Suppose that the sales units,...
As a financial advisor, you are assigned a new client who is considering investing in one...
As a financial advisor, you are assigned a new client who is considering investing in one of two stocks, A or B. The table below shows information about the performance of stocks A and B last year. (Average) Return Standard Deviation Stock A 15% 8.3% Stock B 15% 2.1% What factors would you consider as a financial advisor in making decisions about the data above? Based on these factors, what stock would you recommend to the client? What reasons will...
As a financial advisor, you are assigned a new client who is considering investing in one...
As a financial advisor, you are assigned a new client who is considering investing in one of two stocks, A or B. The table below shows information about the performance of stocks A and B last year. (Average) Return Standard Deviation Stock A 15% 8.3% Stock B 15% 2.1% What factors would you consider as a financial advisor in making decisions about the data above? Based on these factors, what stock would you recommend to the client? What reasons will...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT