Cover fe ature 47 january 2012 Published by the ieee computer Society 0018-9162/12/$31. 00 2012 ieee


Speed sp1 = Value (100)/ Value (9.8)



Download 1,78 Mb.
Pdf ko'rish
bet8/32
Sana13.01.2022
Hajmi1,78 Mb.
#355100
1   ...   4   5   6   7   8   9   10   11   ...   32
Bog'liq
Software-for-infrastructure

Speed sp1 = Value<1,0,0> (100)/ Value<0,0,1> (9.8); 

// use a shorthand notation:

Speed sp1 = Value (100)/ Value (9.8);

// abbreviate further still:

Speed sp1 = Meters(100)/Seconds(9.8); 

Speed sp1 = M(100)/S(9.8); 

// this is getting cryptic

Notation matters. SI units are important and should 

be supported, but so should a variety of other notions. 

The fundamental point here is that we can improve 

code quality without adding runtime costs. The use of 

a static type system improves code quality by reducing 

the number of errors and moves checking to compile 

time. In fact, we can move much simple computation to 

compile time. 

Compile-time computation has been done in a variety 

of languages for decades. Before that (and sometimes still) 




Download 1,78 Mb.

Do'stlaringiz bilan baham:
1   ...   4   5   6   7   8   9   10   11   ...   32




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©www.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