Does Programming Language can be categorize ??
Sound's Interesting ??
Different languages have different purposes,agree ? So It makes sense to talk about different types of languages.
We can divide into 8 types
- Machine languages : interpreted directly in hardware
- Assembly languages : thin wrappers over a corresponding machine language
- High-level languages : anything machine-independent
- System languages : designed for writing low-level tasks, like memory and process management
- Scripting languages : generally extremely high-level and powerful
- Domain-specific languages : used in highly special-purpose areas only
- Visual languages : non-text based
- Esoteric languages : not really intended to be used
Perl is both high-level and scripting . C is considered both high-level and system.
High-level languages :
A high-level language gets away from all the constraints of a particular machine. HLLs have features such as:
- Names for almost everything: variables, types, subroutines, constants, modules.
- Complex expressions (eg. 2*(12/1) * sqrt(2.6))
- Control structures (conditionals, switches, loops)
- Composite types (arrays, structs)
- Type declarations
- Type checking
- Easy ways to manage global, local and heap storage
- Subroutines with their own private scope
- Abstract data types, modules, packages, classes
- Exceptions