It's pretty common in the Lisp world at large. For example, Common
Lisp's (defstruct foo ...) automatically defines a foo-p predicate.
-Per
On Fri, Mar 19, 2010 at 7:53 PM, Konrad Hinsen
wrote:
> On 19.03.2010, at 13:50, Per Vognsen wrote:
>
>> It would still be nice to have an auto-generated na
On 19.03.2010, at 13:50, Per Vognsen wrote:
> It would still be nice to have an auto-generated name?-style predicate
> in deftype, I think.
I haven't yet made my mind up about this. I have used such auto-generated
predicates in my unit library (http://code.google.com/p/clj-units/) for
dimension
Thanks, I had seen that ::Foo use and was a bit confused. Now it all
makes sense.
It would still be nice to have an auto-generated name?-style predicate
in deftype, I think.
-Per
On Fri, Mar 19, 2010 at 7:44 PM, Meikel Brandmeyer wrote:
> Hi,
>
> On Mar 19, 12:09 pm, Per Vognsen wrote:
>
>> It
Hi,
On Mar 19, 12:09 pm, Per Vognsen wrote:
> It looks like there isn't a way to get at the class behind a deftyped
> type other than constructing a dummy instance and taking its class,
> because the generated class has a gensymmed name. I was doing
> something where I needed to test when someth
On 19.03.2010, at 12:09, Per Vognsen wrote:
> It looks like there isn't a way to get at the class behind a deftyped
> type other than constructing a dummy instance and taking its class,
> because the generated class has a gensymmed name. I was doing
> something where I needed to test when somethin