HackerTrans
TopNewTrendsCommentsPastAskShowJobs

acdw

no profile record

comments

acdw
·पिछला माह·discuss
In CL and Scheme, it's (let ((var1 val) (var2 val)) body...). So parentheses are used for grouping and function/macro application. In Clojure, parens are just used for application, so you have e.g. (let [var1 val var2 val] body...), or (defn foo [x] ..) or (cond testa 1 testb 2 ...).

It takes some getting used to, and I do wish Clojure would do something more like (let [[var1 val] [var2 val]] ... .. though of course then you'd have to figure something else out for destructuring.
acdw
·पिछला माह·discuss
I have heard of Smalltalk and it is intriguing but honestly I don't even know how to get started with it lol
acdw
·पिछला माह·discuss
It's ok because I'm a hobbyist programmer!
acdw
·पिछला माह·discuss
I use Emacs's built-in structural editing bindings, which doesn't have the auto-move-past any kind of paren/bracket thing. Maybe I could add that in.

But I was talking about like, when refactoring, I'll maybe change something from a list to a vector, and I have to change the delimiters at front and back. Or, where electric-pair does do the move-past-all-parens thing when I just spam ), it doesn't do that with ]}]}]]}}]})).
acdw
·पिछला माह·discuss
This is very much what I meant in the post (hi, I'm the author :P)! CL has maps, but they're a pain to use - not just because of the syntax, but because of the relative dearth of standard library functions to work with them compared to say, lists or even vectors.
acdw
·पिछला माह·discuss
Oh I've written an SSG in multiple variations of lisp, as well as sh, make, and most other languages I toy around with. It's been a good "kick the tires" project but I think I need a new one.
acdw
·6 माह पहले·discuss
HAHAHAH Hell yeah that's praxis baby die mad about it
acdw
·10 माह पहले·discuss
> What works best for me is no modal editing at all.

I used vim for 8 years and after switching to Emacs, realized that I'm the same. I was spending way more time (in vim) thinking about (to borrow another commenter's metaphor) how I was going to play the notes than what notes I was going to write.