Re: Bliss update

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

On  0, 10963508 at europeonline.com wrote:
> 
> Here's what I think someone should add to Euphoria (for free!), and only
> this. It's not a good idea adding too many builting functions with strange
> names which you can write in include files, like you did with exchange(),
> drand()...
> 
> Maybe I'll do this someday. In order of priority:
> 
> Structures:
> -------------------------------
> These are only to save data and help organize data, no complications,
> simple, no routines allowed in them. Example:
> 
> structure Person
>     sequence name
>     sequence surname
>     integer age
> end structure
> 
> Person person
> person.name = "George"
> 
> 
> Classes:
> -------------------------------
> Nothing complicated, just allow one include file to be used as a class,
> global routines and variables as public class members. Example:
> 
> include circle.e as Circle
> 
> Circle circle1
> circle1.radius = 5
> circle1.draw ()
> 
> Circle circle2
> circle2.draw ()
> 
> 
> Enum, like in C++, it's very useful for clear code:
> --------------------------------------------
> 
> enum bool
>     false
>     true
> end enum
> 
> These are not good idea:
> multiline comment, goto,
> 

I think that goto does have its uses, but after implementing it in
preproc,
I think that it is not really that necessary.

However, I do think that multiline comments ARE very useful! Its easier
to
comment out a few hundred lines of code using multline comment instead
of a
few hundred single-line comments. Even if ed's F12 key speeds this up
(but not
enough in my IMHO) its still far too much work to remove them.

Since linux users dont have any modified interpreters, and since I
don't have
the source, I instead resort to using preprocessors to implement all
these
features. (Right now I'm working on a class preprocessor, structures
are simple
by comparision. In fact, I'm thinking about implementing structures
using
the underlying class code. This makes strucures with class members and
classes
which use structures much easier to implement. The hard part is merging
this
with rparse.) It seems that all of the modified interpreters are for
windows
only. Also the major widget library is for the windows version only.
Hmmmmm....

jbrown


-- 
http://fastmail.fm - Click it, you'll feel better

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

Search



Quick Links

User menu

Not signed in.

Misc Menu