antrion's comments

antrion | 9 years ago | on: Ask HN: JS's for-of loop conceptually flawed, or is it just me?

My specific use case was working with 'infinite lists', so the first options is ruled out.

The second option could be a solution, but the specific case was reusing a variable `const nums = iu.iterate(x => x+1, 1)`, and quite extensively. (It's just a helper function to make a list of all natural numbers)

It would be so much nicer if I could just reuse this variable throughout my code

antrion | 10 years ago | on: Show HN: I just made my first JavaScript library

When me and my friends were participating in a contest, half of the program's chrashes were because of wrongly passing arguments to another function. Reversing their order for example. I know, that's just plain stupid, but it has happend multiple times ;)

So I set out to make a library that makes type checking just a little bit easier. I hope that next time we take part in that competition, this will save us some time

What do you think of it?

page 1