vilem@buggymcbugfix·Jul 13, 2021I find Haskell's syntax for lambda ugly af, but it seems I'm the only one??16122
Daniel @starsandspirals·Jul 13, 2021I wouldn't say I like it but I would say that pretty much every other syntax for lambda that I've seen looks worse 😅 except for the unicode λ in Granule, of course 😉17
Brendan Zabarauskas@brendanzab·Jul 13, 2021You could go the Java or JS route, but that way leads to terrifying 'covering grammars' https://262.ecma-international.org/7.0/#prod-CoverParenthesizedExpressionAndArrowParameterList…14
Brendan Zabarauskas@brendanzab·Jul 13, 2021Java style, woooo https://docs.oracle.com/javase/specs/jls/se8/html/jls-15.html#jls-15.27…13
vilem@buggymcbugfix·Jul 13, 2021although this is probably a terrible terrible syntax anyway considering we may want to eventually use lambda at the type level1
Brendan Zabarauskas@brendanzabReplying to @buggymcbugfix and @starsandspiralsyeah that would be my concern - also having arrow types in terms11:19 AM · Jul 13, 2021·Twitter Web App1 Like
Brendan Zabarauskas@brendanzab·Jul 13, 2021Replying to @brendanzab @buggymcbugfix and @starsandspiralsOne solution would be to use a different token, like `=>`11
vilem@buggymcbugfix·Jul 13, 2021I find that a bit confusing with `<=` meaning less than or greater.. how about `|->` ("maps to")?2