badkins
2021-8-5 15:30:51

(session-request kws kwargs pos-args) > (session_request, kws, kwargs, pos_args) I can’t go back to comma delimited lists.


badkins
2021-8-5 15:53:37

What will list comprehensions look like in Rhombus? Here’s a comparison of Haskell and Julia. It surprised me how nice Julia’s comprehensions were in comparison to Haskell: https://blog.lojic.com/2020/12/26/comprehensions-in-julia.html


hazel
2021-8-5 17:54:54

I mean the difference is that Haskell’s list comprehensions are actually really rare to find


hazel
2021-8-5 17:55:48

that and Julia’s “slicing” is probably faster (unless Julia also uses linked-lists)


badkins
2021-8-5 17:59:21

I didn’t realize they were really rare to find in Haskell, I always enjoyed their expressiveness when I was coding Haskell.


badkins
2021-8-5 17:59:49

It just seems like once you move away from the beloved benefits of s-expressions, you might as well fully embrace the niceties of having syntax.


badkins
2021-8-5 18:00:14

i.e. I don’t think you want to be in some middle ground of “meh” syntax.


hazel
2021-8-5 18:00:15

most Haskell code I see seems to avoid them


hazel
2021-8-5 18:00:28

anecdotally


badkins
2021-8-5 18:00:41

Gotcha - I’m sure I’m far from an idiomatic Haskell coder.


hazel
2021-8-5 18:02:00

I mean me too but that’s because I should probably be writing more Haskell


samdphillips
2021-8-6 00:43:01

I’ve updated this working from the changes made last night. I’ve also added a renaming function to go from kebab-case to a more Rhombusy snake_case.<https://gist.github.com/samdphillips/9254e25bf620ef449e212402572b959c>


notjack
2021-8-6 02:22:48

That renaming function is an excellent idea