Everything2
Near Matches
Ignore Exact
Full Text
Everything2

evaluate

created by trixter

(idea) by haggai (5 mon) (print)   ?   I like it! Sat May 10 2003 at 22:19:38

A compiled program, or an interpreter running some code, is said to evaluate the expressions it comes across. Once the instruction has been parsed and the expressions figured out, it's time to calculate their value. Thus, "a+5" might evaluate to 6.7 (if a == 1.7), and "len('a'*5)" to 5 (in Python, the expression 'a'*5 evaluates to 'aaaaa', and len is a function returning objects' lengths). In many interpreted languages, the interpreter's own evaluation command is available to the programmer (or one very much like it); expressions are passed as strings, and the value is returned. This function is frequently named eval.

Interpreters are also sometimes said loosely to "evaluate" code (entire instructions, rather than just expressions), but strictly speaking, this is execution (of which expression evaluation is just one part).


(definition) by Webster 1913 (print) I like it! Tue Dec 21 1999 at 23:30:20

E*val"u*ate (?), v. t. [See Evaluation.]

To fix the value of; to rate; to appraise.

 

© Webster 1913.


printable version
chaos

How to get rid of a telemarketer Evaluation implementation Performance Review
Interpreter order of operations execute Eval
expression dict comprehension Systems Analysis instanceof
conclusion observe and unsavory
String interpreted language parser compiler
Making sense of international ethics, Part I Assess Chinese Lettered Goldfish Brute
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
The best nodes of all time:
Niels Bohr
Freelancing
William Faulkner
Kosovo
Sal Mineo
George Washington
Ray Charles
Hillsborough Disaster
superhero cape
Of first and last noders
Etacism
The Capuchin Boneyard
The Perfect Puppy
New Writeups
rootbeer277
m&m's Ice Cream Treats(review)
Transitional Man
Gus's Chalet(review)
minnow
.410 bore(thing)
shaogo
Phonautogram(thing)
Morkel
Changing your sexuality(idea)
teleny
Baron Samedi(person)
Ouzo
The Great Barbershop Race Wars(log)
Mannerisky
second language(essay)
aneurin
British Monomarks(idea)
FrankThomas
How and why do we (humans) have culture?(essay)
lee_cad
Isaac(person)
kalen
downvota(poetry)
Andrew Aguecheek
Wstfgl(thing)
ncc05
overheard at IHOP(event)
calgon
Bottomless(poetry)
This affordable entertainment brought to you by The Everything Development Company