[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Even more nitpicks



Jonathan Hseu <vomjom@vomjom.org> writes:

> Sorry, it seems as if my nitpicks may never end :)

no matter.

> Will we have an equivalent of Python's dir()?

sure.

> What are your plans for big ints?

working on it, but it's not a big priority.

> Renames:
> eof-object? should be eof?... because zero? isn't called zero-num?
> port2str should be called port-to-str to follow convention.

good good.

> Now, a bigger issue:
> case calls currently look like:
> (case value
>   ((key1 key2) body)
>   ((key3 key4) body2))
> 
> The key stuff looks fugly IMO.
> A better solution may be to use tuples for the keys:
> (case value 
>   (#(key1 key2) body)
>   (#(key3 key4) body2))
> 
> It adds only one more character and uses an internal type.

i don't agree.  first of #(...) doesn't evaluate it's arguments at
this point so it would imply that case doesn't.  i think the worser
problem is when symbols are the keys
  
  (case value (('a 'b) body1) ...)

as they need to be quoted unlike in common lisp, but i felt that it
was worth that cost to get the extra power of evaluation.  

-- jrb

> -- 
> Jonathan Hseu <vomjom@vomjom.org, vomjom@debian.org, jh4@cec.wustl.edu>
> GPG ID:          5228D713
> GPG fingerprint: 220B A4EF 70FE B884 CB38  F93F EA8A 1024 5228 D713