Live data from Hacker News

Viewing profile — kbp

kbp

HN member
Joined
Wed, Oct 19, 2016, 10:33 PM UTC
HN karma
807
Public activity
480 items

About kbp

No profile information was provided.

Recent public activity

  1. comment
    Comment #40474011

    Er, actually x = 2 x = "foo" [y] = [3] [y] = ["bar"] Sorry, I didn't re-read the code before translating.

  2. comment
    Comment #40473061

    I'm not sure what you find incomprehensible about the first example. The syntax is pretty standard. The only exotic thing is `$`, which is basically just like putting brackets arou…

  3. comment
    Comment #40442785

    It works the same way in Haskell, eg main = do let x = 2 let x = "foo" y which is really the same as main = let x = 2 in let x = "foo" in pure 3 >>= \y -> pure "bar" >>= \y -> putS…

  4. story
  5. story
  6. comment
  7. comment
    Comment #35951234

    Surely not in Canada?

  8. comment
    Comment #35950249

    I can hear them and tell that they're different accents, but I don't really distinguish them, I would call them both "British" and I wouldn't know which one's more posh.

  9. comment
    Comment #34474616

    Usually that effort should go toward naming functions rather than their results, though, and if the functions have good names, the results don't need them. In this example, `other_…

  10. story
  11. comment
    Comment #24665666

    Works in Ruby: irb(main):001:1/ puts(%r irb(main):002:1* a+ irb(main):003:0> .match? %q aaa ) true

  12. comment
  13. comment
  14. comment
  15. comment
    Comment #22888507

    You can also ssh in via Emacs with Tramp, and use your highly customised Emacs to edit remotely.

  16. comment
  17. comment
  18. comment
  19. comment
    Comment #22064998

    Unsigned integers are still specified to wrap.

  20. comment
    Comment #22039938

    > Clojure has cons, car, cdr which you can use in the classic Lisp sense. The only thing you CAN'T do is have a dotted pair or dotted list in the last cons cell. So, it doesn't hav…

  21. comment
    Comment #21849158

    Yeah, it's definitely a taste thing, but as the first style isn't used in Lisp, comparing its readability doesn't really make sense. Indentation is important to reading Lisp. Inden…

  22. comment
    Comment #21848964

    That isn't how that defun would normally be formatted, though. Lisp knows that the 'body' part starts with the 3rd argument (the same way Clojure knows it starts with the second), …

  23. comment
    Comment #21809698

    Could you expand on how Forth differs from Lisp? I don't know Forth.

  24. comment
    Comment #21588687

    SICP called it design by wishful thinking; I always liked that.

  25. comment
    Comment #21312567

    You're mixing your "playing by JS' rules" point with just general Elm features. Faster compilation speed, faster executables, and smaller executables are not JS' rules, they're jus…