Ealuation order and exceptions

Assignment Help Basic Computer Science
Reference no: EM13963486

Ealuation Order and Exceptions

Suppose we add an exception mechanism similar to the one used in ML to pure Lisp. Pure Lisp has the property that if every evaluation order for expression e terminates, then e has the same value under every evaluation order. Does pure Lisp with exceptions still have this property? [Hint: See if you can ?nd an expression containing a function call f(e1, e2) so that evaluating e1 before e2 gives you adifferent answer than evaluating the expression with e2 before e1.]

Reference no: EM13963486

Questions Cloud

Continuations in place of exceptions : In addition to continuations that represent the "normal" continued execution of a program, we can use continuations in place of exceptions. For example, consider the following function f that raises an exception when the argument x is too small:
Control flow and memory management : An exception aborts part of a computation and transfers control to a handler that was established at some earlier point in the computation.
The reaction involved in the purification of nickel : The reaction involved in the purification of nickel is given below. Ni(s) + x CO(g) → Ni(CO)x(g)
Discuss the innovation involved in product development : Choose a product that they are interested in or provides the required information to discuss the innovation involved in its development - What aspect of the technology influenced the development and the products
Ealuation order and exceptions : Suppose we add an exception mechanism similar to the one used in ML to pure Lisp. Pure Lisp has the property that if every evaluation order for expression e terminates, then e has the same value under every evaluation order. Does pure Lisp with ex..
What is the identity of this gas : A sample of 4.00 g of gas occupies a volume of 1.47 L at 20.0 psi and - 40.0 °F. What is the identity of this gas?
Implications of false beliefs about homosexuality : Reflect on the following statement made by Stanton L. Jones in the assigned article, "Sexual Orientation and Reason: On the Implications of False Beliefs About Homosexuality"
Tail recursion and exception handling : Can we use tail recursion elimination to optimize the following program?
What is the mass of the ice cubes dropped : Two ice cubes at 0.0 oC are dropped in an insulated container containing 93.8 g of water at 27.0°C. After all the ice is melted, the final temperature of the system is 17.0 °C. What is the mass of the ice cubes dropped? Assume that the container has ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Aes uses the indirect-rijndael algorithm

AES uses the Indirect-Rijndael algorithm  2. packet filter protect networks by blocking packets based on the packets' content

  Design the redo log groups

Discuss the thought process of DBAs as they design the redo log groups and members for a database. Analyze and comment on the different factors that will affect their decision.

  Write your function so that it returns an array of dice

Write your function so that it returns an array of Dice structs. Each element in the array should be set to indicate one of the possible ways of rolling the sum. The last element in the array should be the special "sentinel" value where both die1 and..

  Find the sum of the squares of the integers

Find the sum of the squares of the integers from 1 to My Square, where My Square is input by the user.be sure to check that the user enters a positive integer.

  Recursive multiplication

Recursive Multiplication Write a main program that uses a recursive function. This function accepts two arguments into the parameters x and y.

  Write a sequence of statements that creates a new file

There are two text files, whose names are given by two String variables , file1 and file2. These text files have the same number of lines. Write a sequence of statements that creates a new file whose name consists concatenating the names of the tw..

  Make a c program using cramers rule using 3 variables and eq

make a C program using cramers rule using 3 variables and 3 equations. I need help why the third variable says it isnt initialized and allow the the determinents to be calculated. also i need help making a menu allowing the user to make a start the p..

  Instruction cycle and finding contents of registers

Go over instruction cycle and find out contents of registers PC, AR, DR, AC, and IR for each of seven memory-reference instructions.

  The ceo throws a billion dollar party

The CEO throws a billion dollar party

  Display each of these amounts and the total

Display each of these amounts and the total. Use flowchart symbols for your answer.

  How much extra transmission delay will the segments

a) How much extra transmission delay will the segments experience?

  Affecting the field of healthcare technology

Affecting the field of healthcare technology.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd