[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] RecordType operations and parameter types
From: |
Richard |
Subject: |
Re: [Chicken-users] RecordType operations and parameter types |
Date: |
Wed, 07 Jan 2015 14:37:09 +0100 |
Hello Bahman,
You could use #sys##check-structure for this. That said, I don't think
there is much wrong with using an assert.
greetings,
Richard
Bahman Movaqar writes:
> I have a record type, SOME-RT, and am implementing operations for it. As
> a habit, I keep putting an 'assert' expression at the beginning of each
> procedure.
>
> (define (some-rt-some-op param1)
> (assert (some-rt? param1) ...)
>
> However, I doubt if I'm doing things the idiomatic way. Is this the
> approach you seasoned CHICKEN'ers would take as well? TIA,
--