Question: Common Lisp highlighting types in source code



Hi:

Please hang on: I post things here because I do not want to hear nasty
comments from mad cowboys (Kenny, okay retard Erik N. retired, and
some other weird characters) over there on comp.lang.lisp.

I have a question: I use types in Bigloo a lot not so much for the
sake of catching type errors but to improve readability and
documenting my code. I learned this technique when learning Clean. You
can program without 'giving types' in Clean though.

this is readable:
==
(define (a::vector b::bstring g::class-g) ...)
==

this sucks (not only error prone but also cumbersome and hard to
read):
==
(define (a_vector b_string g_class_g) ...)
==

[in Emacs types would be highlighted].

Is this sort of technique available in Common Lisp. I haven't found
anything on Google (not sure if 'declare' is what I am after).

Thanks, Frankenstein
.



Relevant Pages

  • Re: Dim a byte array.
    ... > don't think your technique is there but it would be an excellent addition. ... the first code I posted was in response to Randy saying it ... As to maintainability or even readability... ... maintainability were apparently not high on his list of concerns.... ...
    (microsoft.public.vb.general.discussion)
  • Re: never ending loop
    ... so using a different technique may reduce the ... > readability of your code. ... My programming-teacher at school would have killed me if I did ... this in Modula-2. ...
    (alt.comp.lang.learn.c-cpp)