newLISP Fan Club

Forum => Anything else we might add? => Topic started by: cormullion on October 03, 2006, 03:32:04 AM

Title: join problem
Post by: cormullion on October 03, 2006, 03:32:04 AM
I accidentally did this:


(join '(1 2 3))

rather than


(join '("1" "2" "3"))

and join wasn't happy - I had to kill the newLISP session.



In general, should user-errors like this be guarded against in the code, or should we be allowed to shoot ourselves in the foot?



Or perhaps join could do this:


(join (sequence 1 10))
;-> 12345678910


although I would have written


(join (map string (sequence 1 10)))
[/code]
Title:
Post by: Lutz on October 03, 2006, 04:35:05 AM
Thanks for this discovery, this will be taken care of in the 8.9.15, should give an error message.



Lutz