Live data from Hacker News

Viewing profile — a_strange_guy

a_strange_guy

HN member
Joined
Sat, Jan 01, 2011, 11:19 PM UTC
HN karma
13
Public activity
10 items

About a_strange_guy

No profile information was provided.

Recent public activity

  1. comment
    Comment #3446222

    I thought we were talking about "adding methods" to collection-like things so that they look as if they were built-in. And this was what the article was about: That it gets complex…

  2. comment
    Comment #3445274

    I'm not Parent, but I think that this is his implementation: https://github.com/nickik/Persistent-Vector-in-Dylan/blob/ma... The last part (line 222+) is what defines it as a seque…

  3. comment
    Comment #3445130

    Well that is the beauty of it. In Scala methods/functions that come after the dot are privileged. In a language with multiple dispatch they are not. So CL solves the problem withou…

  4. comment
    Comment #2792826

    Of those Languages you listed, many don't have implemented function closures correctly. Python doesn't allow you to mutate variables from enclosing scopes (by default, at least). R…

  5. comment
    Comment #2753057

    this: func global(some_arg_to_close_over Bar) { func walk_tree(node Node) { ... walk_tree(left(node)) walk_tree(right(node)) } walk_tree(something) }

  6. comment
    Comment #2748558

    This is what they want: func outer(a int) { func inner_helper(b int) { ... } } Pascal allowed nested functions 40 years ago...

  7. comment
    Comment #2748529

    (1) MLs allow to nest named functions. Go only allows named global functions, and lacks a feature that Pascal had. (2) Someone has to do cleanup anyhow. Either the caller or callee…

  8. comment
    Comment #2648284

    Scala is actually a really bad name for trying to google it. http://en.wikipedia.org/wiki/Scala

  9. comment
    Comment #2648280

    You don't typecheck macros since they run at compile time. You typecheck the expanded code instead.

  10. comment
    Comment #2058831

    What I still don't get is why inheritance in OO-languages is always the heavyweight version, namely subclassing. Imho every class definition in Java-like OO languages should create…