Re: How about macro == symbol for mixin statement? [was Re: Member

2009-10-14 Thread Yigal Chripun
Don Wrote: > Yigal Chripun wrote: > > On 12/10/2009 10:47, Don wrote: > >> > >> Ah, OK. My cursory glance at Nemerle just screamed "hack". But first > >> impressions can be misleading. > >> No doubt as a C-family language, they have some useful ideas. > >> But if Christopher's analysis is correct,

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-14 Thread Don
Yigal Chripun wrote: On 12/10/2009 10:47, Don wrote: Ah, OK. My cursory glance at Nemerle just screamed "hack". But first impressions can be misleading. No doubt as a C-family language, they have some useful ideas. But if Christopher's analysis is correct, the "macro" bit is different to the "p

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-13 Thread Yigal Chripun
On 12/10/2009 10:47, Don wrote: Ah, OK. My cursory glance at Nemerle just screamed "hack". But first impressions can be misleading. No doubt as a C-family language, they have some useful ideas. But if Christopher's analysis is correct, the "macro" bit is different to the "plugin" bit. I think al

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-12 Thread Don
Yigal Chripun wrote: On 10/10/2009 10:50, Don wrote: Yigal Chripun wrote: On 10/10/2009 00:36, Christopher Wright wrote: Yigal Chripun wrote: On 09/10/2009 00:38, Christopher Wright wrote: It makes macros highly compiler-specific, or requires the compiler's AST to be part of the language. N

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-10 Thread Yigal Chripun
On 10/10/2009 10:50, Don wrote: Yigal Chripun wrote: On 10/10/2009 00:36, Christopher Wright wrote: Yigal Chripun wrote: On 09/10/2009 00:38, Christopher Wright wrote: It makes macros highly compiler-specific, or requires the compiler's AST to be part of the language. Nemerle took the nuclea

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-10 Thread Christopher Wright
Yigal Chripun wrote: On 10/10/2009 00:36, Christopher Wright wrote: Yigal Chripun wrote: On 09/10/2009 00:38, Christopher Wright wrote: It makes macros highly compiler-specific, or requires the compiler's AST to be part of the language. Nemerle took the nuclear option, and its macros are all

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-10 Thread Don
Yigal Chripun wrote: On 10/10/2009 00:36, Christopher Wright wrote: Yigal Chripun wrote: On 09/10/2009 00:38, Christopher Wright wrote: It makes macros highly compiler-specific, or requires the compiler's AST to be part of the language. Nemerle took the nuclear option, and its macros are all

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-10 Thread Yigal Chripun
On 10/10/2009 00:36, Christopher Wright wrote: Yigal Chripun wrote: On 09/10/2009 00:38, Christopher Wright wrote: It makes macros highly compiler-specific, or requires the compiler's AST to be part of the language. Nemerle took the nuclear option, and its macros are all-powerful. That's a rea

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-09 Thread Christopher Wright
Yigal Chripun wrote: On 09/10/2009 00:38, Christopher Wright wrote: It makes macros highly compiler-specific, or requires the compiler's AST to be part of the language. Nemerle took the nuclear option, and its macros are all-powerful. That's a reasonable way of doing things. I'd be happy with a

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-09 Thread Yigal Chripun
On 08/10/2009 17:25, Don wrote: Jarrett Billingsley wrote: On Thu, Oct 8, 2009 at 4:00 AM, Don wrote: So it looks to me like the mechanics of it are basically identical. Just Nemerle's syntax is nicer. Only with trivial examples. With more complicated examples they look less identical. I'm b

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-09 Thread Yigal Chripun
On 09/10/2009 00:38, Christopher Wright wrote: Bill Baxter wrote: It seems macros are implemented as compiler extensions. You compile your macros into DLLs first, that then get loaded into the compiler as plugins. On the plus side, doing things that way you really do have access to any API you n

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-08 Thread Christopher Wright
Bill Baxter wrote: It seems macros are implemented as compiler extensions. You compile your macros into DLLs first, that then get loaded into the compiler as plugins. On the plus side, doing things that way you really do have access to any API you need at compile-time, using the same syntax as

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-08 Thread Ary Borenszweig
Jarrett Billingsley wrote: On Thu, Oct 8, 2009 at 11:25 AM, Don wrote: Jarrett Billingsley wrote: On Thu, Oct 8, 2009 at 4:00 AM, Don wrote: So it looks to me like the mechanics of it are basically identical. Just Nemerle's syntax is nicer. Only with trivial examples. With more complicated

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-08 Thread Jarrett Billingsley
On Thu, Oct 8, 2009 at 11:25 AM, Don wrote: > Jarrett Billingsley wrote: >> >> On Thu, Oct 8, 2009 at 4:00 AM, Don wrote: >> So it looks to me like the mechanics of it are basically identical. Just Nemerle's syntax is nicer. >>> >>> Only with trivial examples. With more complicated exam

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-08 Thread Don
Jarrett Billingsley wrote: On Thu, Oct 8, 2009 at 4:00 AM, Don wrote: So it looks to me like the mechanics of it are basically identical. Just Nemerle's syntax is nicer. Only with trivial examples. With more complicated examples they look less identical. I'm basing my views on pages like this

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-08 Thread Jarrett Billingsley
On Thu, Oct 8, 2009 at 4:00 AM, Don wrote: >> So it looks to me like the mechanics of it are basically identical. >> Just Nemerle's syntax is nicer. > > Only with trivial examples. With more complicated examples they look less > identical. I'm basing my views on pages like this: > > http://nemerl

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-08 Thread Bill Baxter
On Thu, Oct 8, 2009 at 1:06 AM, Don wrote: > Jarrett Billingsley wrote: >> >> On Wed, Oct 7, 2009 at 11:21 AM, Don wrote: >>> >>> Steven Schveighoffer wrote: On Wed, 07 Oct 2009 09:17:59 -0400, Jarrett Billingsley wrote: > It's also insanely kludgy and ugly. Bleh. >>> >>>

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-08 Thread Don
Jarrett Billingsley wrote: On Wed, Oct 7, 2009 at 11:21 AM, Don wrote: Steven Schveighoffer wrote: On Wed, 07 Oct 2009 09:17:59 -0400, Jarrett Billingsley wrote: It's also insanely kludgy and ugly. Bleh. Ugly, yes. Kludgy, I don't think so. It's only a syntax issue. The basic concept of pa

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-08 Thread Don
Bill Baxter wrote: On Wed, Oct 7, 2009 at 11:21 AM, Don wrote: By contrast, something like Nemerle macros are a kludge. The idea of providing a 'hook' into the compiler is a horrible hack. It exposes all kinds of compiler internals. Yes, it has nicer syntax. Are you talking specifically abo

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-07 Thread Bill Baxter
> On Wed, Oct 7, 2009 at 11:21 AM, Don wrote: >> By contrast, something like Nemerle macros are a kludge. The idea of >> providing a 'hook' into the compiler is a horrible hack. It exposes all >> kinds of compiler internals. Yes, it has nicer syntax. Are you talking specifically about the abilit

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-07 Thread Jarrett Billingsley
On Wed, Oct 7, 2009 at 11:21 AM, Don wrote: > Steven Schveighoffer wrote: >> >> On Wed, 07 Oct 2009 09:17:59 -0400, Jarrett Billingsley >> wrote: >> >>> It's also insanely kludgy and ugly. Bleh. > > Ugly, yes. Kludgy, I don't think so. It's only a syntax issue. The basic > concept of passing meta

Re: How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-07 Thread Don
Steven Schveighoffer wrote: On Wed, 07 Oct 2009 09:17:59 -0400, Jarrett Billingsley wrote: It's also insanely kludgy and ugly. Bleh. Ugly, yes. Kludgy, I don't think so. It's only a syntax issue. The basic concept of passing meta-code to the compiler in the form of raw text is simple: m

How about macro == symbol for mixin statement? [was Re: Member functions C to D]

2009-10-07 Thread Steven Schveighoffer
On Wed, 07 Oct 2009 09:17:59 -0400, Jarrett Billingsley wrote: It's also insanely kludgy and ugly. Bleh. If all a macro did was translate a scoped normal symbol to a mixin (or other macro) statement, would this take care of the ugliness? (would also be an insanely simple solution) i.e