Everything2
Near Matches
Ignore Exact
Full Text
Everything2

evaluate

created by trixter

(idea) by haggai (4.9 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
What you are reading:
Walter Benjamin
catting weird things to /dev/audio
Galapagos Hawk
Citing writeups
Lamed Vav Zaddikim
Hockey terms
Pied Piper
Alan Lomax
What if architecture was like web design?
World of Warcraft
Darts
Heirlooms
Thirty Years' War
New Writeups
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)
lismaraxt
Ice Theory of The Origin of Life(idea)
allthetime
Apple Cinnamon Suicide(idea)
Lucy-S
shovelglove(idea)
Adaptive Child
Mexican secret sauce(recipe)
Adaptive Child
nacho libre(recipe)
TheLady
Iron Man(review)
Scaevola
Risk in the Roman law of sale(idea)
semicolon
overheard at IHOP(event)
choirotey
Violent pickup lines(idea)
This affordable entertainment brought to you by The Everything Development Company