grouped into 2 main classes "Dynamic" and "Static". - It is always the case that the programming language is in one of them, and not both, I mean, can the language be dynamic and static at the same time?
The difference between static and dynamic language is rather ambiguous, since it can relate to many different (more or less suitable) criteria. I will try to answer for each case:
, . , .
(.NET).
( ) . . # dynamic, VB Explicit/Strict off Boo. . (System.Object) - , .
dynamic
System.Object
Java .NET.
. . Haskell Scala.
# 4.0 - , . dynamic : . , .
Objective-C - . C, C . "" ( , id). Objective-C, , id. , NSArray id, :
id
NSArray
NSMutableArray *a = [NSMutableArray arrayWithObject:@"I am a string"]; NSNumber *n = [a objectAtIndex:0]; //assigning a string to a number!
NSNumber *n = @"I am a string" .
NSNumber *n = @"I am a string"
. , .
#, , System.linq.Expression tree API VS 2010 (.NET 4.0). DLR (Dynamic Language Runtime) - CLR.
System.linq.Expression tree API
, expression class, , IronPython ..
expression class
, python CLR. , DLR.
?
. , , , , . "", REPL, . , F # - , . /.
Therefore, I suppose that a language can be both dynamic and static. In particular, by checking statically type and supporting interactive evaluation.
Source: https://habr.com/ru/post/1723967/More articles:Windows Setup: dynamic registry keys / values - c #Can someone please explain to me in clear, unprofessional terms what a deal is with matching resources and named routes in Ruby on Rails? - ruby | fooobar.comPython - multidimensional arrays - cWhere should I put NHibernate hibernate xml files? - nhibernateProblem implementing location receiver in android application - androidIntegration with software SAGE PRO ERP - enterpriseHow to define a C ++ base class at run time if a method has been overridden? - c ++Как определить выбранный слайд - это мастер-слайд в PowerPoint 2003 Programmatically - powerpoint-vbaPHP: отображать записи из базы данных группами по пять? - sqlC # - event design considerations - c #All Articles