Posts Tagged ‘dynamic languages’

Scope and foreach loops

One of these misunderstandings: I always thought foreach loops would create a temporary variable for the current element that would mask any variable with the same name in the current scope.

Obviously that is not the case, as I discovered when I tried to find a bug in Simple Tagging’s STP_RelatedPosts() function.

First I thought this was a PHP-only behavior… But see the following PHP and Python examples:
More »

Duck Typing, Generics and Templates…

Skunk Works has an article about how “The Future Won’t Be Statically Typed”.

There’s been many criticisms of duck typing but usually those voicing them don’t have an extensive experience of development using non statically typed languages or are Java fundamentalists.

Yeah. I agree with that. But I also think current dynamic languages are not the end of the story. Why is everybody thinking Types? Why not Interfaces? No, I don’t mean Java’s Interfaces — because they also rely on inheritance trees (or are the root of it). I think inheritance trees are the root of the problem.
More »

Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!Willst du auch bei der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien: