Skip to main content

Questions tagged [dynamic-typing]

For questions relating to languages whose variables' data types are unknown at compile time but are decided at runtime based on the value currently being held by the variable, and type systems enabling this.

21 votes
6 answers
5k views

Javascript for example has both null and undefined values. They are nearly equivalent: both are falsy values that denote absence ...
Matheus Moreira's user avatar
5 votes
1 answer
292 views

What are some alternatives to tracing GC for dynamically-typed languages? I've been interested in dynamically typed languages with predictable behavior since learning about lua in the NetBSD kernel. ...
Greg Nisbet's user avatar
10 votes
1 answer
712 views

One aspect of a dynamically typed language is that it is possible for a variable to change its type (the "type" of the value it holds) in the course of "straight line code". This ...
davidbak's user avatar
  • 353
21 votes
4 answers
3k views

There seem to be two conflicting views regarding the status of "type systems" used in dynamically typed languages: That dynamically typed languages are actually just unityped static ...
Caleb Thomas's user avatar
7 votes
4 answers
467 views

In my answer to the question What are the advantages and disadvantages of making types as a first class value?, I point out that for the language I'm working on, I wanted to have the ability to do ...
Lance Pollard's user avatar
8 votes
1 answer
395 views

I noticed in JavaScript and Lua, 'types' i.e., those returned by typeof()/type() are just identified by strings. As such we see ...
CPlus's user avatar
  • 10.5k
12 votes
2 answers
548 views

Statically-typed languages specify the types of variables and functions and reject programs they know won't work before they run. Dynamically-typed languages don't include these annotations or checks, ...
Michael Homer's user avatar
  • 15.6k
13 votes
5 answers
666 views

Going off of this question about the difference between nullable types and optional types, I notice that no mainstream dynamically typed language has ever gone for an explicitly-boxed ...
Silvio Mayolo's user avatar