Teach Time Encyclopedia - Learn About Our World
Home Page
Teach Time
Featured Topics

United States
by state

CITYology

Academic Disciplines

Historical Timelines

Themed Timelines

Calendars

Reference Tables

Biographies

How-tos



Tuesday, December 02, 2008

Curly brace family

The curly brace family of programming languages includes C, C++, Java, AWK, Perl, C# and others. The name derives from the common syntax of the languages, where blocks of statements are enclosed in curly braces. For example (using Kernel/K&R indent style, one of many stylistic ways to place curly braces within a program)

for (int i = 0; i < 10; i++) {
  printf("%d", i);
  doTask(i);
}

Languages in this family tend to have syntax that is strongly influenced by C, and often inherit other syntactic features of C such as using the semicolon as a statement terminator (not as a separator) and using the three-part "for" statement syntax as shown above.

There are many other ways to identify statement blocks, such as ending keywords that may match beginning keywords (see Pascal, Ada, and REXX), indentation (see Python), or other symbols such as parentheses (see LISP).



Internet Hotel Solutions

Site Sponsors
AC Units
Baltimore Harbor
Boot Camp Grads
Bra Size
Burkittsville
College Hotels
Digital Harbor
Free Cell Phones
Golden Hare Travel
Golf Vacations
Golf Courses
Gourmet
Hair Styles
Hippodrome
iWoman
Lesson Plans
Maryland Hotels
MD Genealogy
Minor League Stuff
Motel Site
Ocean City
OC Real Estate
Old Agers
Office Supplies
Orlando
Pet Friendly Hotel
Room Prices
Savannah, GA
Ski Vacations
South Baltimore
Student Teaching
Travel Sources
University Hotels
Visit Military Bases
Washington, DC

Brought to you by NoChildLeftBehind.com and the Beaches and Towns Network, LLC.