public inbox for kawa@sourceware.org
 help / color / mirror / Atom feed
* learning scheme with kawa: square brackets in certain forms
@ 2015-10-28 10:11 Debabrata Pani
  0 siblings, 0 replies; only message in thread
From: Debabrata Pani @ 2015-10-28 10:11 UTC (permalink / raw)
  To: kawa

Hi ,

Using a bracket instead of parenthesis in "let" form does not work

(let ([ls '()])
    (lenth ls))

It shows :
kawa/reciprocal.ss:127:8: unknown type name 'ls'

I will have to use parens for that. But gambit and chicken scheme are
lenient in that.

As per the documentation
https://www.gnu.org/software/kawa/tutorial/Sequences.html , Square
brackets are for literal representation of immutable vectors.

Query :
Is it possible to use  brackets in case-lambda , let and other such
forms ? (something that I may not have discovered yet)
Or will we get the same "unknown type name" errors if we use brackets ?

Regards,
Debabrata Pani

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-28 10:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28 10:11 learning scheme with kawa: square brackets in certain forms Debabrata Pani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).