Everything2
Near Matches
Ignore Exact
Full Text
Everything2

evaluate

created by trixter

(idea) by haggai (7.4 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) 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
Nodes to live by:
Phaethon
Deep Fried Foods in the Restaurant
Baldur's Gate II: Thanks heaps for enhancing my aura of inadequacy!
Tamal
The Hellfire Club
Antarctica
The Unspeakable Vice of the Greeks
Judging women by their books
Who is allowed to donate blood?
Cheesecake
here is the mutiny I promised you and here is the party it turned into
The Three Laws of Thermodynamics
pornography
New Writeups
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
antigravpussy
I fall silent, listening. The breadcrumbs are talking about us(person)
calgon
Buffalo Bill by the pool(poetry)
gate
Anarchy is Order(idea)
ushdfgakjasgh
Scribeling(thing)
XWiz
Trism(review)
artman2003
Briefcase Full of Souls - Part I(fiction)
Dreamvirus
Alan Ladd(person)
waverider37
Harold Holt(person)
The Debutante
Until death do us part(fiction)
Ysardo
a brother to a sister(personal)
antigravpussy
your warm whispers(personal)
Clarke
Multiculturalism(idea)
Everything 2 is brought to you by the letter C and The Everything Development Company