←back to thread

228 points Retro_Dev | 1 comments | | HN request time: 0.288s | source
Show context
barelysapient ◴[] No.44465168[source]
A big change like this makes me hopeful Zig may revisit and improve other design choices in the future.
replies(1): >>44466074 #
bbkane ◴[] No.44466074[source]
Could you elaborate on the choices you'd like revisited?
replies(3): >>44466265 #>>44470288 #>>44472856 #
1. thayne ◴[] No.44470288[source]
Not the original poster, and I don't have very high hopes that these will be revisited, but some things I would like to see revisited are:

- ability to define anonymous functions without having to put it inside an anonymous struct. I get the argument against closures (even if I don't fully agree with it), but not having first class support for anonymous functions feels pretty regressive for a modern language

- have a way to include payload data with errors. Or at the very least, define an idiomatic pattern for handling cases where you have additional data for an error

- allow struct fields to be private

- bring back async support in some form (this one I do have some hope for)