happy=.0
   > happy #  <'clap hands'

   happy=.1
   > happy #  <'clap hands'
clap hands


2011/10/30 Andrew Pennebaker <[email protected]>

> J won't let me write if. ... end. by itself; it must be enclosed in a
> function definition. E.g., I'd like to do this:
>
> if. happy do.
>   clapHands
> end.
>
> Rather than:
>
> arewehappy =: monad : 0
>   if. happy do.
>      clapHands
>   end.
> )
>
> arewehappy 0
>
> Can we add the ability to do the former to J?
>
> By the way, what's the preferred notation for long variable and function
> names? camelCase? with_underscores?
>
> Cheers,
>
> Andrew Pennebaker
> www.yellosoft.us
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Björn Helgason, Verkfræðingur
Fornustekkum II
781 Hornafirði,
t-póst: [email protected]
gsm: +3546985532
twitter: @flugfiskur
http://groups.google.com/group/J-Programming


Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans

góður kennari getur stigið á tær án þess að glansinn fari af skónum
          /|_      .-----------------------------------.
         ,'  .\  /  | Með léttri lund verður        |
     ,--'    _,'   | Dagurinn í dag                     |
    /       /       | Enn betri en gærdagurinn  |
   (   -.  |        `-----------------------------------'
   |     ) |         (\_ _/)
  (`-.  '--.)       (='.'=)   ♖♘♗♕♔♙
   `. )----'        (")_(") ☃☠
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to