Overview
| Artifact ID: | 9137e35ae44065dbafae18576d00ea73219646cc67a154ede3f39de2808bf484 |
|---|---|
| Ticket: | f4a4bd7f107031f273642cbaefc3cbed72315b1f
lseq "count" argument also dictates output formatting |
| User & Date: | oehhar on 2024-08-30 07:37:59 |
Changes
- icomment:
Dear Nathan, Jan, please allow me to give my limitted view: In the form "lseq 3.0" the argument "3.0" is a count for a sequence. That a coung beeing a float or an entier gives the final format is IMHO "interesting functionality" hard to explain to an end user. For me, this feels quite critical, as float and entier work quite differently internally. float have roughly 15 significant digits while entier is unlimited. Specially here is clear that the count is an entier: <verbatim> % lseq 3.5 expected integer but got "3.5" </verbatim> Controlling the type of the return value is possible by the "by" clause. This is logical and ok for me: <verbatim> % lseq 3 by 1 0 1 2 % lseq 3 by 1.0 0.0 1.0 2.0 </verbatim> So, I would say, that "lseq 3.0" returning floats is a bug, or at least, a feature hard to explain to the end user. Or do I miss the big picture? Thank you and take care, Harald
- login: "oehhar"
- mimetype: "text/x-fossil-wiki"
- username: "oehhar"