RE: Block Commenting

new topic     » goto parent     » topic index » view thread      » older message » newer message

> 
> > Block comments would be a godsend, as well as a number of other bits of 
> > shorthand I'd like to see.
> 
>     I like to share with Robert on this one: I don't care for block 
>     comments either. Tmo line comments have the great side effect of
>     being very "visible" in large code files. Actually, I like to add
>     additional "visibility" to comments by drawing lines (sort of)
>     around my comments.
> 
>     Besides, most modern editors have the option to convert blocks
>     of text into comments or back using line-comment identifiers.
> 
> <snip>

No one would force you to use block comments if you don't like them.  
Line-comments would still exist, just like now.

> > What if there was a standard pre-processing protocol built-in the 
> > interpreter? Users could optionally link a pre-processor syntax file to 
> > the interpreter, which would automatically convert the user source files 
> > 
> > 
> > to regular Euphoria before it gets on with the actual interpreting. In 
> > other words, allow custom exentions to the parser.  And when errors 
> > occur, the line numbers could be synchronized with the original source 
> > (or with the converted source as well as an option).
> 
>     I don't like that either. From a performance pov I would say
>     to keep the interpreter as the "engine" to run programs on,
>     nothing more or less than that.
>     Extentions to what Euphoria can do are handled nicely by
>     the include system and custom functions. I quite like Euphoria
>     for this.
> 
>     Most of what you want can be handled in a good IDE and kept
>     out of the way in the final version of a project.
>     For my own IDE project I will most certainly look into several
>     ideas like these to see what can be incorporated.
> 

It could be handled a number of different ways, I suppose. But any 
performance loss would only occur on start-up when loading in the file, 
and would be neglible I would think.  Since it is a pre-processing step, 
it wouldn't effect the speed of the program at all.  It would speed up 
YOUR performance though by allowing you to code faster, don't forget 
that.

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu