egallesio / STklos

STklos Scheme
http://stklos.net
GNU General Public License v2.0
69 stars 17 forks source link

`uvector?` is only available with SRFI-4 loaded, but `uvector-tag` is always available #521

Open jpellegrini opened 1 year ago

jpellegrini commented 1 year ago

I suppose the two should be either both in the stklos module or both in srfi/4 - no?

lassik commented 1 year ago

uvector-tag doesn't seem to be defined in SRFI 4.

lassik commented 1 year ago

What is uvector-tag?

stklos> (apropos "tag")
(tagbody)
stklos> (import (srfi 4))
stklos> (apropos "tag")
(tagbody)
jpellegrini commented 1 year ago

What is uvector-tag?

Hmm, it's undocumented.

stklos> (uvector-tag (bytevector 2 3 4))
u8
stklos> (import (srfi 4))
stklos> (uvector-tag #s16(-1 2 3))
s16
jpellegrini commented 4 months ago

Thinking about this - since uvector-tag can actually be used withoug the SRFI (for ordinary bytevectors), maybe it's ok as it is? (And this issue could be closed?)