On Wednesday, 27 May 2015 at 12:55:05 UTC, Dennis Ritchie wrote:
On Wednesday, 27 May 2015 at 12:37:51 UTC, Kagamin wrote:
On Wednesday, 27 May 2015 at 12:34:49 UTC, Daniel Kozák wrote:
What if use the symbol '#' ?

Yep, I like this symbol for macro too.

https://issues.dlang.org/show_bug.cgi?id=2660

OK. This symbol is already used in a wrong place :)

http://dlang.org/lex.html#special-token-sequence

You can still use `:`. The colon is used even to refer to some Lisp macros, for example:

(loop :for key :in keys
    :collect (cons key 0))

Still, as an option, you can use the `'` . This symbol is also used in Lisp, in some places, for example:

(key-weight 'sweet)

Or apostrophes, too, somewhere involved in the D?

As far as I know, the : and ' symbols in Lisp don't have anything to do with macros. : is for keyword arguments and ' is for creating AST literals. It makes sense that these would be heavily used with macros, of course, but they are not part of Lisp's macro system.

Reply via email to