Skip to main content

Questions tagged [dynamic-typing]

Dynamic Typing is a property of a programming language where type checks are performed mostly at run time.

Filter by
Sorted by
Tagged with
0 votes
3 answers
248 views

Question Body I'm currently developing a Python coding standard for use in enterprise-level internal systems. Our typical use cases include: API input/output validation Reading from databases, ...
agolta's user avatar
  • 77
12 votes
9 answers
6k views

In my understanding, the strengths of not using type are flexible and newbie-friendly, and the strengths of using type are easier to debug and reading code. However now you can use types on ...
Ooker's user avatar
  • 335
0 votes
1 answer
316 views

Lately I've been surveying the programming language landscape and one of the languages I looked at was Pharo, a modern Smalltalk. Programming using a living system that runs in a virtual machine seems ...
Daniel Arant's user avatar
4 votes
5 answers
546 views

See: Type inference with duck typing - does this work? Why is it not used? And: General approach for proving decidability/undecidability Hello, I wanted to ask a theoretical question about type system ...
SeriousBusiness100's user avatar
0 votes
0 answers
102 views

I have 2 classes that share some properties public class SportsUser { public string errorCode { get; set; } //the sportsuser and SportsAdminUser is from a different database hence the long and ...
pinman's user avatar
  • 11
0 votes
0 answers
339 views

Problem to solve I have a method parse_doc that should dynamically determine a parsing function to parse document_id based on the value of the document_id string: # list of files that may have ...
anon01's user avatar
  • 117
4 votes
4 answers
2k views

It is my understanding that: It's particularly difficult to compile ahead of time, to efficient native machine code, a dynamically typed language like Python. Largely as a result of the above, the ...
Amelio Vazquez-Reina's user avatar
7 votes
3 answers
470 views

In statically typed languages or dynamically typed languages that use a type checking system you can guarantee that the input type is the type that you specified in the contract. However, in ...
Adam Thompson's user avatar
1 vote
3 answers
270 views

Context: design with correlated polymorphic classes For example, let's consider the following class definitions for representing messages that we would get from some remote service: class ...
Vaughan Hilts's user avatar
3 votes
2 answers
9k views

My web api method should return some structured data about my profile. To do it I created the following POCO classes: public class ProfileInfo { public string FirstName { get; set; } public ...
user285336's user avatar
0 votes
2 answers
940 views

For example, should I test like this: // it shouldn't even compile since I'm using a static type-checking expect(addTen('string')).toThrowError() when it is already type-checked like this: function ...
Christopher Regner's user avatar
3 votes
2 answers
343 views

I was reading the Go-lang documents and found under the section of Types that Go has no type hierarchy. What does that mean exactly? Is it like python that types are been checked at run time (...
ThunderWiring's user avatar
6 votes
2 answers
7k views

First let me explain what is my understanding of the terms statically typed language and type safety: Statically typed language: a language that does not allow you to change the type of a variable at ...
user247763's user avatar
31 votes
9 answers
5k views

I've read a related question Are there any design patterns that are unnecessary in dynamic languages like Python? and remembered this quote on Wikiquote.org The wonderful thing about dynamic typing ...
user7610's user avatar
  • 429
26 votes
2 answers
1k views

I don't know very well Python. I'm trying to understand more precisely what exact features of dynamic languages (à la Python, Lua, Scheme, Perl, Ruby, ....) are forcing their implementations to be ...
Basile Starynkevitch's user avatar
42 votes
5 answers
5k views

I've recently poured a couple of hours into JavaScript because I wanted to benefit from the massive userbase. Doing that I have noticed a pattern that most people attribute to dynamic languages. You ...
TomTom's user avatar
  • 531
1 vote
3 answers
1k views

If we look at the definition of "dynamically-typed programming languages" in Wikipedia, it says: Programming languages which include dynamic type-checking but not static type-checking are often ...
nonopolarity's user avatar
  • 1,837
0 votes
5 answers
284 views

I am trying to understand static vs dynamic typing, but am really struggling to see how everything fits together. It all starts with data types. As far as I understand, data types are quite abstract ...
Lord Cat's user avatar
  • 139
4 votes
1 answer
104 views

As a regular user of Standard ML and, to a lesser extent, Haskell, the following pattern is deeply ingrained into my "instinctive" approach to navigating and learning new APIs: Understand the types. ...
isekaijin's user avatar
  • 508
6 votes
1 answer
578 views

This question appears to be fairly well tread, for example: Do dynamic typed languages deserve all the criticism? What is the supposed productivity gain of dynamic typing? etc. However, most questions ...
charl's user avatar
  • 177
14 votes
3 answers
725 views

Optional is useful in an obvious way in a statically typed language, but I'm wondering if it's also useful in dynamic languages. Usually there's no compiler telling you, "hey, you used this Optional&...
Daniel Kaplan's user avatar
16 votes
4 answers
4k views

Being either static or dynamic should be something completely supported in the language. Static vs dynamic shouldn't be something that you have to turn on and off, switching between basically 2 ...
vlad-ardelean's user avatar
13 votes
3 answers
6k views

This question has been asked here, but received poor answers and didn't clarify the issue. I believe it justifies asking it again. I understand that you can have duck typing with either dynamically ...
Aviv Cohn's user avatar
  • 21.6k
3 votes
4 answers
15k views

I'm making a class similar to the following: public class KeyValue { public readonly string key; public readonly object value; } Value could be of any object type as a result of this design. ...
9a3eedi's user avatar
  • 2,099
7 votes
7 answers
6k views

I understand what dynamic and static type systems are, and what duck typing is. But I don't understand how you can have a static language that supports duck typing. To my understanding only a ...
Aviv Cohn's user avatar
  • 21.6k