Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.prolog > #14817

String lists can be a nightmare [WebPL]

From Mild Shock <janburse@fastmail.fm>
Newsgroups comp.lang.prolog
Subject String lists can be a nightmare [WebPL]
Date 2025-09-05 17:57 +0100
Message-ID <109f4qk$15ss3$1@solani.org> (permalink)

Show all headers | View raw


Hi,

Maybe its not clear to the Prolog community
what Problems string lists can create, and what
potential solutions exists. This complete

unawareness, leads to funny results:

?- test(X), X = [A|_].
X: abc, A: _13 (3.6ms)

?- test(X), X == [a,b,c].
No results

So what is going on? Any clues?

Basically entering the rabit hole that Atom
type CharList requires all code places that use
CONS Cells to have scrutinized and possibly changed .

A rabit hole that lets Scryer Prolog already
suffer as Markus Triska has expressed.

Bye

Back to comp.lang.prolog | Previous | NextNext in thread | Find similar | Unroll thread


Thread

String lists can be a nightmare [WebPL] Mild Shock <janburse@fastmail.fm> - 2025-09-05 17:57 +0100
  Prolog Veterans know the Solution: ADTs (Was: String lists can be a nightmare [WebPL]) Mild Shock <janburse@fastmail.fm> - 2025-09-05 18:02 +0100

csiph-web