Weak Typing

In computing, Weak Typing, when applied to a programming language, is used to describe how the language handles datatypes. "Weak Typing" is the strict enforcement of type rules but with well-defined exceptions or an explicit type-violation mechanism. Weak typing is "friendlier" to the programmer than strong typing, but catches fewer errors at compile time. C and C++ are weakly typed, as they automatically coerce many types e.g. ints and floats. E.g.
  int a = 5;  float b = a; 
They also allow ignore typedefs for the purposes of type comparison; for example the following is allowed, which would probably be disallowed in a strongly typed language:
  typedef int Date;    /* Type to represent a date */  Date a = 12345;  int b = a;       /* What does the coder intend? */ 
C++ is stricter than C in its handling of enumerated types:
  enum animal {CAT=0,DOG=2,ANT=3};  enum animal a = CAT;  /* NB The enum is optional in C++ */  enum animal b = 1;    /* This is a warning or error in C++ */ 

 

<< PreviousWord BrowserNext >>
army combat uniform
charibert ii
flume
sebastien gattuso
miyazaki aoi
christmas ham
list of victoria (australia) highways
list of south australian highways
diversion
pfungstadt
list of western australian highways
chamleunesouk ao oudomphonh
list of queensland highways
foothill college
syrian woodpecker
wow! signal
the third wave
list of northern territory highways
advance wars 3
list of tasmania highways
mini jakobsen
statement of work
fernando cheung
xenia, grand duchess of russia
the order of omega
into the west (song)
pedro luiz napoleo chernoviz
will sasso
automobiles of italy
yukio ninagawa
the eyes of texas
government of south australia
government of tasmania
government of queensland
government of new south wales
nathan hines
government of victoria
vincenzo viviani
wiskott aldrich syndrome
soulcake
thomas m. cooley law school
tarxien
lifestyle anarchism
semyon abramovich furman