<beneroth>
tankf33der, Regenaxer, I understand the task as: you get some text input, how to figure out the type of the input? So I would do checks like (format Input) -> NIL = not a number
<tankf33der>
maybe num? sym? lst?
<beneroth>
yeah, you get text, you don't know what it could be
<beneroth>
so I understand the task.
<tankf33der>
ok
<beneroth>
In my feeling it goes a bit against picolisp habits, as we usually say we "know" about the input format. so maybe we would validate the input, but not do wild guessing.
<Regenaxer>
Hi beneroth, tankf33der!
<Regenaxer>
Yes, I thought so too
<beneroth>
as Regenaxer always says, picolisp text input has to be valid UTF-8 without NULL in it....
<Regenaxer>
(any "string") -> type check
<beneroth>
T
<beneroth>
in practice, the situation that you have to do wild guesses is not so rare, e.g. when doing data imports/migrations.
<Regenaxer>
T
<Regenaxer>
parsing in general
<Regenaxer>
But the wording of the task is confusing
<Regenaxer>
And existing solutions seem to ignore it too
<beneroth>
T
<beneroth>
"The function takes one parameter (ideally) that describes the text. " - sounds to me like an additional parameter which indicates the type
<Regenaxer>
hmm
<beneroth>
haha, the discussion page has a section titled "Could the draft description be coaxed into something useful ?"
<beneroth>
so, it is not just us
<beneroth>
tankf33der, sounds like it is not so clear what will happen with this task. if it ever will be made into a real task, and if so, if the description still fits the answers...
<Regenaxer>
haha, indeed
<tankf33der>
i will delete solution. later
<Regenaxer>
Or just leave it?
<tankf33der>
ok. leaved.
<Regenaxer>
ok
iuno has joined #picolisp
xkapastel has joined #picolisp
freemint has joined #picolisp
andyjpb has quit [Ping timeout: 244 seconds]
andyjpb has joined #picolisp
orivej has quit [Ping timeout: 272 seconds]
freemint has quit [Ping timeout: 264 seconds]
rob_w has joined #picolisp
andyjpb has quit [Ping timeout: 245 seconds]
andyjpb has joined #picolisp
freemint has joined #picolisp
rob_w has quit [Quit: Leaving]
orivej has joined #picolisp
freemint has quit [Ping timeout: 250 seconds]
orivej has quit [Ping timeout: 258 seconds]
iuno has quit [Quit: Leaving]
orivej has joined #picolisp
<DKordic>
I suggest we solve that task as: ""Nonsense!! (solved). ""
<DKordic>
Or even better throw some Exception, like ""ImportError"" in Python?
orivej has quit [Ping timeout: 268 seconds]
orivej has joined #picolisp
mtsd has joined #picolisp
mtsd has quit [Quit: Leaving]
ubLIX has joined #picolisp
xkapastel has quit [Quit: Connection closed for inactivity]