[Jprogramming] Debian Forum comparing J to Brainf*

Raul Miller rauldmiller at gmail.com
Tue Dec 27 23:05:57 HKT 2011


It's worth noting, I think, that the java "boolean" data type has
rules enforced on it which have almost nothing to do with the
mathematical concept of "boolean" (as in "boolean algebra").

Boolean algebras include algebras which work on integers.

The java "boolean" data type is really a bit data type with the added
constraint that it not be treated as an integer.

-- 
Raul

On Sun, Dec 25, 2011 at 11:52 PM, Henry Rich <HenryHRich at nc.rr.com> wrote:
> Well, Java doesn't use the Iverson bracket, so if they say
>
>   return x > 20;
>
> it means something different (it returns a boolean).  That's a different
> battle to fight.
>
> Henry Rich
>
> On 12/25/2011 10:42 PM, Marshall Lochbaum wrote:
>> Actually I think the Java (which was in fact Java rather than C, although
>> you had no way of knowing) was "if (x>20) return 1; else return 0;". My
>> friend proposed this as a more readable version than ">&20" when I
>> suggested it. In any case, I stand by my rhetoric; the actual code is
>> irrelevant.
>>
>> Marshall
>>
>> 2011/12/25 Björn Helgason<gosinn at gmail.com>
>>
>>> It is possible to use the extra unused y as comment
>>>
>>>    gt20=:20<[
>>>    15  10 35  21   gt20 'true if one otherwise false if zero'
>>> 0 0 1 1
>>>
>>>
>>> 2011/12/25 Björn Helgason<gosinn at gmail.com>
>>>
>>>> If you want to use x as the example is showing you could do it like this
>>>>
>>>>     gt=:20<[
>>>>     21   gt ''
>>>> 1
>>>>
>>>>
>>>> 2011/12/25 R.E. Boss<r.e.boss at planet.nl>
>>>>
>>>> No.
>>>>> Lochbaum stated it correctly.
>>>>> It was you who did not recognize>&20  as a (monadic) verb.
>>>>>
>>>>>    gt=:>&20
>>>>>
>>>>>    4!:0<'gt'
>>>>> 3
>>>>>
>>>>>
>>>>> R.E. Boss
>>>>>
>>>>>
>>>>>> -----Oorspronkelijk bericht-----
>>>>>> Van: programming-bounces at jsoftware.com [mailto:programming-
>>>>>> bounces at jsoftware.com] Namens Björn Helgason
>>>>>> Verzonden: zondag 25 december 2011 9:49
>>>>>> Aan: Programming forum
>>>>>> Onderwerp: Re: [Jprogramming] Debian Forum comparing J to Brainf*
>>>>>>
>>>>>> " I once had a friend tell me that "if (x>20) return true; else return
>>>>>> false;" was clearer than the J equivalent ">&20". I hope you can see
>>>>> past "
>>>>>>
>>>>>> Then this should be  ">&20  y"
>>>>>>
>>>>>
>>>>>
>>>>>
>>> ----------------------------------------------------------------------
>>> For information about J forums see http://www.jsoftware.com/forums.htm
>>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm


More information about the Programming mailing list