Overview
| Artifact ID: | 6a314306107e06f93d9c21b502ce7f6eb5dfb81e |
|---|---|
| Ticket: | 44fd4b9a4eb9ff5551e8e68d4ffc592946a035e4
More lreplace weirdness |
| User & Date: | ferrieux on 2015-06-22 17:03:22 |
Changes
- icomment:
My earlier remark on the compiled version being "buggy" is, of course, relative to the documented behavior ("first must exist"). Now since you're suggesting to make slightly incompatible, but extremely reasonable updates to the documented semantics: yes, I agree that one single rule should define allowed positions in [lreplace]: make sure that the target range "touches" the input list. This allows for lreplace a 1 end lreplace {} 0 end and precludes lreplace a 2 end lreplace {} 1 end So I'm okay if your plan is to update the noncompiled semantics as just described. As to the compiled version, again, I'd suggest to drastically reduce the ambition of the optimizer (especially the handling of the lrange-equivalent cases known at compile time, since there's no demand). - login: "ferrieux"
- mimetype: "text/plain"