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

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

Maybe you could post an algorithm/code sample where you think returning an atom
would make more sense?

s[constant...constant] is never used; slices are usually used in a loop or with
one or two variables. The expression following almost invariably expects a
sequence--returning either a sequence or an atom would require extra checking.

--
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