Re: Why equal(x[n], x[n..n])=0 ?

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

Fernando Bauer wrote:
> Ok. But sometimes you want to use slice, and then you have to test the length
> of the slice or the values of the indexes. This probably adds lines of code
> and processing time. 
Ah, but depending on the algorithm, sometimes when you expect a slice to return
a sequence then checking for an atom or "one sequence down" will probably add
lines of code or processing time.

--
A complex system that works is invariably found to have evolved from a simple
system that works.
--John Gall's 15th law of Systemantics.

"Premature optimization is the root of all evil in programming."
--C.A.R. Hoare

j.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu