Live data from Hacker News

Hurl, a terrible (but cute) idea for a language

ntietz.com

21–30 of 84 posts

Re: Hurl, a terrible (but cute) idea for a language

#28
post #23

While cute this is really close to call/cc and/or algebraic effects as an abstraction for control flow, which isn't as much "cute" as it is "a powerful way to express programs in as few expressions as possible"

Yep! Everyone should read https://overreacted.io/algebraic-effects-for-the-rest-of-us/ for how powerful this can be in practice. The caller gets to pause execution on the raising/hurling of an event - which makes many crazy things possible.

Re: Hurl, a terrible (but cute) idea for a language

#29
This is very fun!

I am only making suggestion because it rhymes with "hurl" (and it works well metaphorically for the repeating tossing/hurling): you could introduce a "whirl" keyword or part of the standard library as the way to handle loops.

It could be functionally the same as your loop example but removes the self-referential first argument (i.e. whirl(count, [1,3])).

Post reply on HN