Subject: RE: [hackers-il] RE: Scheme in C Indentation Cont.

From: Omer Musaev <[email-masked]>
Date: Thu, 14 Mar 2002 10:26:14 +0200

> -----Original Message-----
> From: Shlomi Fish [mailto:[email-masked]]
> Sent: Wednesday, March 13, 2002 8:23 PM
> To: [email-masked]'
> Subject: [hackers-il] RE: Scheme in C Indentation Cont.
> 
> 
> On Wed, 13 Mar 2002, Omer Musaev wrote:
> 
> >
> >
> > > -----Original Message-----
> > > From: Shlomi Fish [mailto:[email-masked]]
> > > Sent: Wednesday, March 13, 2002 9:14 AM
> > > To: Hackers-IL
> > > Subject: [hackers-il] Scheme in C Indentation Cont.
> > >
> > Of course this is bad code:)))
> > Here is good code:)
> >
> > (define (f l)
> >    (map(let((i 0))(lambda(x)(printf "~a ~a~n" idx x)(set! i 
> (+ 1 i))))l))
> >
> > ;;(joke)
> >
> 
> LOL. BTW, is printf standard in Scheme? Or is it present only 
> in Common
> Lisp?
> 

As in C, printf is not a part of a language, but part of standard
library. Mzscheme has printf as part of its library, along with
many interesting things. CL has it too. 

As a matter of fact, I tend to use MzScheme as "the scheme", and 
not to frown upon lack of functionality in umb-scheme or such.

BTW: there was an error in my 2-liner - it is (printf ".." i x), not 
(printf "..." idx x). Hope that intention was clear...

> > >
> > > Naturally, the problem is that _I_ find it easier to 
> write, read and
> > > edit code like this. 

Remember that code is means of communications with _other_ people...

> >
> > > Other people OTOH are a bit
> > > "copy-cats" in the sense that they do exactly as they see it
> > > and do not
> > > try to change the conventions. (This is not necessarily a 
> bad thing)
> >
> > Oh, man, now you insulted me. Copycat yourself!!!! Did you 
> try to change
> > _YOUR_ conventions?
> >
> 
> What many people do ==> conventions
> What I like to do ==> habit

this reminds me of a story by Feynman where he stated that he invented
symbols for trigo functions, but was forced to use standard names,
since no-one seemed to understand his notations.

> ----------------------------------------------------------------------
> > > Shlomi Fish        [email-masked]
> > > Home Page:         http://t2.technion.ac.il/~shlomif/
> > > Home E-mail:       [email-masked]
> > >
> > > "Let's suppose you have a table with 2^n cups..."
> > > "Wait a second - is n a natural number?"
> > >
> > >
> > > To unsubscribe from this group, send an email to:
> > > [email-masked]
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> > http://docs.yahoo.com/info/terms/
> >
> >
> >
> > To unsubscribe from this group, send an email to:
> > [email-masked]
> >
> >
> >
> > Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/
> >
> >
> 
> 
> 
> ----------------------------------------------------------------------
> Shlomi Fish        [email-masked]
> Home Page:         http://t2.technion.ac.il/~shlomif/
> Home E-mail:       [email-masked]
> 
> "Let's suppose you have a table with 2^n cups..."
> "Wait a second - is n a natural number?"
> 
> 
> ------------------------ Yahoo! Groups Sponsor 
> ---------------------~-->
> Tiny Wireless Camera under $80!
> Order Now! FREE VCR Commander!
> Click Here - Only 1 Day Left!
> http://us.click.yahoo.com/nuyOHD/7.PDAA/yigFAA/saFolB/TM
> --------------------------------------------------------------
> -------~->
> 
> To unsubscribe from this group, send an email to:
> [email-masked]
> 
>  
> 
> Your use of Yahoo! Groups is subject to 
> http://docs.yahoo.com/info/terms/ 
> 
>