Top "Evaluation" questions

Anything related to evaluation of expressions, i.e. the process used to determine the value of expressions in a running program.

Using assignment as a condition expression?

Consider: if (a=5) { /* do something */ } How does the assignment work as a condition? Is it based on non-zero value of …

c++ c if-statement assignment-operator evaluation
What is the difference between quote and list?

I know that you can use ' (aka quote) to create a list, and I use this all the time, …

scheme racket evaluation quote
What is call-by-need?

I want to know what is call-by-need. Though I searched in wikipedia and found it here: http://en.wikipedia.org/…

programming-languages evaluation call-by-value evaluation-strategy call-by-need
Minimax algorithm: Cost/evaluation function?

A school project has me writing a Date game in C++ (example at http://www.cut-the-knot.org/Curriculum/Games/Date.…

algorithm artificial-intelligence evaluation minimax
Math in Vim search-and-replace

I have a file with times (minutes and seconds), which looks approximately as follows: 02:53 rest of line 1... 03:10 rest of line 2... 05:34 …

regex vim evaluation
Evaluate object to a boolean

Consider the following: class MyClass { private $var1 = "apple"; private $var2 = "orange"; } $obj = new MyClass(); if($obj) { // do this } else { // do …

php class object evaluation
What's the explanation for Exercise 1.6 in SICP?

I'm just beginning to work through SICP (on my own; this isn't for a class), and I've been struggling with …

recursion conditional-statements evaluation sicp
Matching vector of default values using match.arg() with or without error [R]

I want to write a function that applies one of two different statistical methods to its input. In the process, …

r function arguments match evaluation
Deferred evaluation in python

I have heard of deferred evaluation in python (for example here), is it just referring to how lambdas are evaluated …

python lambda interpreter evaluation
Evaluation of multiples 'IN' Expressions in 'WHERE' clauses in mysql

Updating by @Cesar's request. Hope I understood what you want, if not, please revert. Quassnoi. If I make an SQL …

sql mysql where-clause evaluation