← Back to team overview

ooc-dev team mailing list archive

Re: Fwd: OOC best practices

 

I think macros should be kept as much "just ooc" as they can be. We don't want 
a separate preproccessor like C has, but macros more like Lisp, which are 
within the language itself. I think I've heard nddrylliog mention macros that 
could do things with AST nodes, etc. They could possibly be defined just like 
functions:

	Vector: macro { ... }

On Wednesday 12 May 2010 06:34:15 Amos Wenger wrote:
> I'm not sure. #foo macro vs # comment seems to confusing / easy to make a
> mistake.
> 
> Ideally one could use # in any context, such as:
> 
> Vector3f := #Vector(3, Float)



Follow ups

References