[Jprogramming] {. y produces an array.

Björn Helgason gosinn at gmail.com
Thu Oct 20 23:22:40 HKT 2011


It depends on what it is
123 can be a number
123 can be text
You can change it from text to number and other way around.

So 123 can be or become what you want it to be.
What you believe it to be may not be what it really is.
You have to test it and make sure it is the shape and character you believe
in or not.
After you find out what 123 is you can decide on what you want to do.
To take 123 on in blind faith can prove to be a mistake and can cause
problems and failures.

2011/10/20 Viktor Cerovski <viktor.cerovski at gmail.com>

>
>
> Raul Miller-4 wrote:
> >
> > On Thu, Oct 20, 2011 at 9:43 AM, Viktor Cerovski
> > <viktor.cerovski at gmail.com> wrote:
> >> Henry Rich wrote:
> >>>
> >>> Point of nomenclature: every noun has a shape.  All shapes are lists.
> >>> The shape of an atom is an empty list.
> >>>
> >>> (also, all nouns are arrays, ecch)
> >>>
> >> Statements like "all nouns are arrays" is hard to make precise
> >> due to the dynamic typing of J.
> >
> > An array is a region of computer memory whose interpretation (and, if
> > we exclude things like sparse arrays, its size) is determined by its
> > shape and its type.
> >
> > A shape is a list of non-negative integers whose product is the number
> > of elements in an array.
> >
> > To make this precise you have to enumerate those types...
> >
> Given all these conditions and definitions (a big given!),
> what is then hermeneutical horizon of 123 in J:
>
> Should I interpret it as a number, or an array, or both,
> or neither?
> --
> View this message in context:
> http://old.nabble.com/%7B.-y-produces-an-array.-tp32687373s24193p32690306.html
> Sent from the J Programming mailing list archive at Nabble.com.
>
> ----------------------------------------------------------------------
> 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: gosinn at gmail.com
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  |
   (   -.  |        `-----------------------------------'
   |     ) |         (\_ _/)
  (`-.  '--.)       (='.'=)   ♖♘♗♕♔♙
   `. )----'        (")_(") ☃☠


More information about the Programming mailing list