Microsoft Word OpenIssuesInOO. doc


  Dynamic typing versus static typing



Download 1,28 Mb.
Pdf ko'rish
bet26/51
Sana29.08.2021
Hajmi1,28 Mb.
#158917
1   ...   22   23   24   25   26   27   28   29   ...   51
Bog'liq
OpenIssuesInOO

4.5 

Dynamic typing versus static typing 

One of the classical discussions within (object-oriented) programming languages is the issue 

of static versus dynamic typing. The arguments in favour of dynamically typed languages 

are: 


•  The programming environments available for these languages are in general more 

advanced, especially in their support for incremental compilation and execution. 

• 

Static typing hinders code reuse [SU95]. 



The arguments for statically-typed languages are: 


• 

Strong typing is an advantage when developing production software since it improves 

the readability of the code and makes it possible to to catch more errors at compile-

time. 


• 

Compilers for statically-typed languages in general generate more efficient code. 

It should be obvious that static typing makes it possible to catch more errors at compile-

time. Type inference [APS93] may help in catching some of these errors before the program 

is run, but it cannot completely compensate for the lack of type information. 

It is true that it requires more work to implement an incremental environment for a 

statically-typed language. However, as demonstrated by the Mjølner ORM System 

[Mag94b] it is possible to develop efficient incremental environments for statically-typed 

languages. 

The dynamically-typed languages have the opposite problem: it is easy to implement 

incremental environments for such languages, but it requires more work to develop 

compilers that can produce efficient code. In the literature, there is a large collection of 

articles describing implementation techniques for dynamically-typed languages [DS84, 

Ung86, HCU91, HU94, AH95]. Some of the compilation techniques developed for 

dynamically typed languages are also relevant for statically typed languages, especially the 

ones allowing inlining of virtual function calls.  

State-of-the-art research has thus shown that it is possible to implement incremental 

environments for statically-typed languages and to have efficient implementations of 

dynamically-typed languages.  

The remaining issue thus seems to be whether or not static typing hinders code reuse and 

whether or not static typing improves readability of code. Since most pros and cons in this 

discussion are considered well know, this issues will not be further discussed in this paper.  




Download 1,28 Mb.

Do'stlaringiz bilan baham:
1   ...   22   23   24   25   26   27   28   29   ...   51




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish