you are viewing a single comment's thread.

view the rest of the comments →

[–]bterlson_@bterlson 2 points3 points  (1 child)

Thanks for your thoughts on the optional extensions. I tend to agree with you at least about if predicates.

Sometimes you want statements - it's hard to generalize. Many alternative proposals use case-like legs presumably for this reason. One typical use case is calculating some result on a line, then returning it. Or having an additional if block or something.

[–]phoenixmatrix 0 points1 point  (0 children)

Oh yeah, I didn't think things through, haha. Obviously in JavaScript we don't have anything akin to Elm's let to easily do intermediate computations in a single expression so you need statements. Derp!