Skip to main content

Questions tagged [weak-typing]

1 vote
7 answers
438 views

Most weakly typed languages do not have a concept of a pointer. Instead, most of them use references. However, is it possible to introduce pointers to such a language. From a naive point of view, to ...
Lily White's user avatar
9 votes
3 answers
2k views

Very often when coding in Python (or any language where type is not specified) I run into the following problem: I want to write a function that can accept either a thing, or a container of such ...
pilu's user avatar
  • 201
11 votes
3 answers
3k views

In Python (and occasionally PHP) where variables do not have fixed types, I'll frequently perform 'type transformations' on a variable part-way through my code's logic. I'm not (necessarily) talking ...
Mark Amery's user avatar
  • 1,273
6 votes
4 answers
2k views

Can a loosely typed programming language like PHP be really considered object oriented? I mean, the methods don't have returning types and method parameters has no declared type either. Doesn't ...
Tulains Córdova's user avatar
8 votes
3 answers
7k views

The question came up in a discussion at StackOverflow. Is there a clean distinction between the two concepts cast and convert (concerning the type of an object), or are these two words describing ...
krlmlr's user avatar
  • 803
17 votes
4 answers
7k views

I wonder why are weakly-typed languages still being actively developed. For example, what benefit can one draw from being able to write $someVar = 1; (...) // Some piece of code $someVar = 'SomeText'...
DotNetStudent's user avatar
11 votes
4 answers
3k views

There is a fairly helpful question already along these lines ("Non-OOP Design Patterns?"), but I am more curious about a transitional point of view for someone just getting started with dynamic and ...
Domenic's user avatar
  • 684
1 vote
4 answers
274 views

I like languages that give me the ability to extend the syntax of the language. At the same time, all the languages that I know will let me extend the syntax have relatively heavy type systems. Are ...
user avatar
44 votes
4 answers
18k views

This came up in a discussion with a friend, and I found myself hard-pressed to think up an any good arguments. What benefits do weak typing confer?
Fishtoaster's user avatar
  • 25.9k
45 votes
7 answers
92k views

PHP, as most of us know, has weak typing. For those who don't, PHP.net says: PHP does not require (or support) explicit type definition in variable declaration; a variable's type is determined by ...
Stephen's user avatar
  • 2,199