Deutsch   English   Français   Italiano  
<U2CdnXFFytrK1DL7nZ2dnZfqn_GdnZ2d@brightview.co.uk>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!Xl.tags.giganews.com!local-1.nntp.ord.giganews.com!nntp.brightview.co.uk!news.brightview.co.uk.POSTED!not-for-mail
NNTP-Posting-Date: Sun, 04 Aug 2024 09:26:47 +0000
From: Mark Summerfield <mark@qtrac.eu>
Subject: Re: is STC a good supplementary library for C?
Newsgroups: comp.lang.c
References: <j4KdnZzYDexmlDP7nZ2dnZfqn_idnZ2d@brightview.co.uk>
	<v8l7kp$3ef24$1@dont-email.me>
MIME-Version: 1.0
User-Agent: Pan/0.149 (Bellevue; 4c157ba)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Message-ID: <U2CdnXFFytrK1DL7nZ2dnZfqn_GdnZ2d@brightview.co.uk>
Date: Sun, 04 Aug 2024 09:26:47 +0000
Lines: 31
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-5Uq99vWoIfUjtrMsXaBSmfhMTzoMrrvlke1/mvR6hc6ZEm6zfbcrp6HjRlpgds3vzHSEKj8Jzkl+tio!MoTu0wlLnDzcamtWFxrjxZS+jIVxgJU79vRXgg6FUPmmF4yA1n9kG709Lj1sjENtmfPDk24x3qRk!Is+3MEH5oVzZTM/LZBZboiuh4A==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Bytes: 2309

On Sat, 3 Aug 2024 13:26:01 +0100, Richard Harnden wrote:
[snip]
> I've never hear of it, but from a very quick look I'd say: no.
> They seem to be trying to write C++ code in C. If you want C++, use C++.
> 
> 
>> I want a generic (int/str/custom struct) set, map, ordered map, vector.
> 
> I think this is better (I've never used it, but Jacob does know what
> he's doing): https://github.com/jacob-navia/ccl
> 
> Really though, roll your own. It'll be a good exercise for relearning C.

Thanks for all the replies.

I've started reading Jacob Navia's CCL document.

This seems to provide all that I'd need (and more besides).

However, it appears that this was intended to be added to C's standard 
library — 12 years ago! The last update was 4 years ago. So it doesn't 
look to be maintained and presumably was rejected as an addition to the 
standard library?

I certainly think the C standard library ought to offer a lot more so that 
practically every C programmer doesn't end up creating their own basic 
containers. (An argument strongly made in Navia's document.)

PS I know I could use Python's library but don't want anything that big 
(hence not GLib); although I might end up using the Tcl/Tk libs for GUI 
apps.