List Commands Library for 50g

08262017, 05:32 PM
(This post was last modified: 08262017 07:02 PM by pier4r.)
Post: #98




RE: List Commands Library for 50g
(08262017 03:04 PM)DavidM Wrote: I'm a bit confused by the above. I get the clear documentation part, but I'm not sure how raising an error for noninteger arguments would be consistent  the builtin routines I've checked don't seem to, and ListExt routines don't either. So what would that be consistent with? Or are you referring to nonnumeric arguments (as opposed noninteger)? Those should definitely raise errors in my opinion. Sorry, I clarify. If for my library I decide that I accept only integers as subscripts and I state it properly, then I keep doing this (unless otherwise stated for some particular commands). It does not matter, for me, that the built in commands accept also decimals, the library should be consistent with its documentation, not (necessarily) with other commands, built in or popular. So I would be completely ok if you say "look, please provide integers or reals without decimal parts". I actually don't know why GET and SUB would work with reals with decimal part. It can surely produce some nice "tricks" but looks dirty in my opinion. edit: I'll do the "processing strings!" thread. I need to find the proper set of challenges though (the start should be small but interesting) I will think about it. Wikis are great, Contribute :) 

« Next Oldest  Next Newest »

User(s) browsing this thread: 2 Guest(s)