Viewing profile — kbp
kbp
HN member- Joined
- Wed, Oct 19, 2016, 10:33 PM UTC
- HN karma
- 807
- Public activity
- 480 items
- HN profile
- View on Hacker News ↗
About kbp
No profile information was provided.
Recent public activity
-
comment
Comment #40474011
Er, actually x = 2 x = "foo" [y] = [3] [y] = ["bar"] Sorry, I didn't re-read the code before translating.
-
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…
-
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…
- story
- story
- comment
-
comment
Comment #35951234
Surely not in Canada?
-
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.
-
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_…
- story
-
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
- comment
- comment
- comment
-
comment
Comment #22888507
You can also ssh in via Emacs with Tramp, and use your highly customised Emacs to edit remotely.
- comment
- comment
- comment
-
comment
Comment #22064998
Unsigned integers are still specified to wrap.
-
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…
-
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…
-
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), …
-
comment
Comment #21809698
Could you expand on how Forth differs from Lisp? I don't know Forth.
-
comment
Comment #21588687
SICP called it design by wishful thinking; I always liked that.
-
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…