top | item 43144752

(no title)

fovc | 1 year ago

Having the data structures is nice and all, but using them is kind of painful. They are certainly second class.

Having to use accessor functions or destructuring macros instead of just a period or -> is often annoying too. The lack of syntax has cons as well as pros.

discuss

order

pjmlp|1 year ago

Everything needed is place, there is no second class about using arrays instead of lists.

cenamus|1 year ago

I mean you can write a macro that let's you write

(object -> slot)

and transforms it to (slot object)

"->" should be unused

tmtvl|1 year ago

Writing a reader macro that allows for something like...

  [some-numbers 0]
...to get the first (many programming languages make this mistake, using 0 to refer to the first element of a collection, so we can forgive CL for this) element. But I'm curious how you can write...

  (object -> slot)
...without getting an error about OBJECT not being a valid function or macro.