[plt-scheme] how to creating a new "primitve type"

From: Chongkai Zhu (czhu at cs.utah.edu)
Date: Tue May 8 17:19:40 EDT 2007

Only using guard-proc looks enough to me.

Chongkai

----- Original Message ----- 
From: YC
To: Chongkai Zhu
Cc: mzscheme Mailing List
Sent: Tuesday, May 08, 2007 2:33 PM
Subject: Re: [plt-scheme] how to creating a new "primitve type"


Hi Chongkai -

thanks for the helpful answers.  I am reading up on the links right now and 
try to digest it.

At first I thought struct doesn't have custom constructor for validation 
logic until I saw guard-proc - so that should solve the data validation 
problem.  So now the question is - should the parse/validation logic reside 
in readtable as well? Or is it okay to let readable construct the object, 
but only receive an error from the construction?

Thanks,
yinso 



Posted on the users mailing list.