Re: Documenting functions that rely on namespace?

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

Bernie Ryan wrote:
> 
>   How did datetime all of a sudden become a type ??

We all decided that datetime in The Archive was a fantastic library and that it
should be included. datetime in the archive has a datetime type. It didn't all of
a sudden become a type, it always was from the beginning.

Now, what is a type? It's nothing more really than a way of telling the compiler
to ensure that a given sequence, atom, integer fits a certain criteria. It's
nothing more.

You can easily do this:

include datetime.e as d
sequence dt1
dt = d:now()


The type datetime just ensures that the sequence meets the date time
requirements, that is 8 integers in a sequence.

What is wrong with type checking?

>   I think you are going to push or force Euphoria away from being
>   a simple easy to learn and use language.

Huh?
 
>   This is what draws users to Euphoria not a lot exotic features.   
>   We don't need another Python or APL language.
>   The basic concept of Euphoria will be lost.

Nobody wants a python. If we wanted python, we would just use it. What people
want is a consistent, complete well thought out set of functions that they use
over and over and over again.

How is making Euphoria easier yet to use bad? Answer that please.

>   There are NO strings in Euphoria only sequences, objects, integers and
>   user define types.
> 
>   Any of your so called string operations can be done easily with
>   sequence manipulation.

Hm. I did not create any string functions. I have added many sequence functions.
Are you refering to trim? pad? Those are all sequence functions. They would just
as well on complex nested sequences as a sequence of ASCII values.

Easily done? No one has shown me yet. Can you show me how to easily trim a set
of atoms/sequences from the end of a sequence?

Yes, Euphoria has no string type, but does anyone here ever read a line of text
from a user or a file and treat it as a string? Of course! To say that functions
that would make it easier to manipulate sequences acting as strings is not
necessary because Euphoria has no strings is crazy.

All of the functions I, and others, have added are all optional includes. No one
is ever required to use them. If you want to still do things the hard way, you
can do it that way. It's your choice. But, for those that want to actually
program their program instead of writing countless support functions so that they
one day can start on their program, they can do that too. Their choice.

Please tell me how having a trim function kills Euphoria? Or having a function
to add two dates together that has been well tested, benchmarked for speed and
accuracy is bad.

The decision has been made to expand Euphoria. Discussion about which functions
and how is still open, but I am getting tired of answering the same question over
and over and over again posed in a different form.

Please, if you have legitimate questions or input, give it. Other wise, let me
and others be in order to work on Euphoria.

--
Jeremy Cowgar
http://jeremy.cowgar.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu