1. dot pre-processor

Thanks, Jeremy, for reviving David's pre-processor. Has it really taken 11 years? I hope it will take much less time to be hard-wired into the interpreter/compiler!

jiri

new topic     » topic index » view message » categorize

2. Re: dot pre-processor

jiri said...

Thanks, Jeremy, for reviving David's pre-processor. Has it really taken 11 years? I hope it will take much less time to be hard-wired into the interpreter/compiler!

jiri

Jiri, you're welcome. I am not sure how much of it, if any, will be wired into the interpreter/compiler. I certainly like the syntax, but we need to make some OO plans before hardwiring anything in. Discussions about that (if even to include it) will come post 4.0. Then we will talk about the DOT type syntax as well. It's simplicity certainly has a lot going for it.

For now, I am going to use DOT for sure. The way I figure, is if 4.1 comes along and we have a conflicting syntax, I can always switch to the post-translated code, as DOT does a great job of maintaining the source formatting and such, so I've lost nothing in the translation.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

3. Re: dot pre-processor

jeremy said...
jiri said...

Thanks, Jeremy, for reviving David's pre-processor. Has it really taken 11 years? I hope it will take much less time to be hard-wired into the interpreter/compiler!

jiri

Jiri, you're welcome. I am not sure how much of it, if any, will be wired into the interpreter/compiler. I certainly like the syntax, but we need to make some OO plans before hardwiring anything in. Discussions about that (if even to include it) will come post 4.0. Then we will talk about the DOT type syntax as well. It's simplicity certainly has a lot going for it.

For now, I am going to use DOT for sure. The way I figure, is if 4.1 comes along and we have a conflicting syntax, I can always switch to the post-translated code, as DOT does a great job of maintaining the source formatting and such, so I've lost nothing in the translation.

Jeremy

And adding this DOT processor to the EUINC bat file i call now is easy. Only drawback is the trace window won't display what i actually wrote.

useless

new topic     » goto parent     » topic index » view message » categorize

4. Re: dot pre-processor

I'll risk the flames to make a comment, using Jeremy's words.

"I was not aware that we are bound by our lineage, that's a new rule to me in developing a language."

"I certainly like the syntax, but we need to make some OO plans before hardwiring anything in."

I like the syntax also. I just question if it must be connected to OOP. Grandaddy MicroS did it first, not necessarily best.

new topic     » goto parent     » topic index » view message » categorize

5. Re: dot pre-processor

shfrance said...

I'll risk the flames to make a comment, using Jeremy's words.

"I was not aware that we are bound by our lineage, that's a new rule to me in developing a language."

"I certainly like the syntax, but we need to make some OO plans before hardwiring anything in."

I like the syntax also. I just question if it must be connected to OOP. Grandaddy MicroS did it first, not necessarily best.

It's not connected to OOP, however, if OOP comes to Euphoria, it may use a similar syntax, thus causing a conflict, that's all. I think we need discuss the hard details of OOP and Euphoria before making the interpreter do anything remotely OOP like. For instance, DOT syntax does this:

sequence name = "John" 
? name.length() 
 
-- Or 
enum FirstName, LastName 
sequence person = { "John", "Doe" } 
printf(1, "Hello, %s! Your last name is %s?", { person.FirstName, person.LastName }) 

Both of those could very much conflict with OOP, if it were to come to Euphoria.

Jeremy

new topic     » goto parent     » topic index » view message » categorize

6. Re: dot pre-processor

jeremy said...

Both of those could very much conflict with OOP, if it were to come to Euphoria.

Jeremy

Let me point you to OOEU, which isn't all OO.

useless

new topic     » goto parent     » topic index » view message » categorize

7. Re: dot pre-processor

jeremy said...

It's not connected to OOP, however, if OOP comes to Euphoria, it may use a similar syntax, thus causing a conflict, that's all. I think we need discuss the hard details of OOP and Euphoria before making the interpreter do anything remotely OOP like.

I don't think that there is any necessary conflict. Therefore your phrase "thus causing a conflict" should be worded more like "thus might cause a conflict", IMO. However, I agree that a lot of discussion needs to happen before we add built-in OOP facilities into the language.

jeremy said...

For instance, DOT syntax does this:

sequence name = "John" 
? name.length() 
 
-- Or 
enum FirstName, LastName 
sequence person = { "John", "Doe" } 
printf(1, "Hello, %s! Your last name is %s?", { person.FirstName, person.LastName }) 

Both of those could very much conflict with OOP, if it were to come to Euphoria.

It is possible, I suppose, but in these examples, the 'name' and 'person' objects are sequences and that could be detected at parser time and thus the correct IL code could be generated, and this would not be in conflict with dot notation used in other manners.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu