Skip to content

Instantly share code, notes, and snippets.

View hoeck's full-sized avatar

Erik Söhnel hoeck

  • Dresden, Germany
View GitHub Profile
@non
non / answer.md
Last active January 9, 2024 22:06
answer @nuttycom

What is the appeal of dynamically-typed languages?

Kris Nuttycombe asks:

I genuinely wish I understood the appeal of unityped languages better. Can someone who really knows both well-typed and unityped explain?

I think the terms well-typed and unityped are a bit of question-begging here (you might as well say good-typed versus bad-typed), so instead I will say statically-typed and dynamically-typed.

I'm going to approach this article using Scala to stand-in for static typing and Python for dynamic typing. I feel like I am credibly proficient both languages: I don't currently write a lot of Python, but I still have affection for the language, and have probably written hundreds of thousands of lines of Python code over the years.

@srikumarks
srikumarks / cspdemo2-pike.html
Last active December 19, 2015 17:39
CSP demo 2 - Rob Pike's example
<button id="search">Search</button>
<div id="results"></div>
<script src="IO.js"></script>
<script src="IO.Browser.js"></script>
<script>
var fake_search = function (kind) {
return function (query) {
return IO.do([
function (_) {
return IO.delay(Math.floor(Math.random() * 100));