tomhrr / dale

Lisp-flavoured C
BSD 3-Clause "New" or "Revised" License
1.03k stars 48 forks source link

In macro #128

Closed porky11 closed 6 years ago

porky11 commented 7 years ago

see commit descriptions

tomhrr commented 7 years ago

There are a few problems with this change:

The first problem is the main one. Although being able to refer to local bindings in the body of the loop is very useful, I'm not sure whether this is the correct approach for dealing with that (cf. e.g. implementing closures and using the existing forms, or adding some sort of macro wrapper around the existing forms). I'm not inclined to merge this until possible alternatives have been investigated more fully.

porky11 commented 7 years ago

Seems good. If there are better alternatives, they should be used. Maybe with additional features. (maybe even similar to lisp loop)

I'd prefer adding typechecking at macroexpansion time instead of using concept macros