[Jprogramming] NaN, p., and control structures
Louis de Forcrand
olius at bluewin.ch
Sat Dec 30 03:29:26 UTC 2017
What about control structures treating _. as false?
I personally would make that an error, and I would also say that code that makes use of this should be considered bad style.
Louis
> On 29 Dec 2017, at 18:29, Henry Rich <henryhrich at gmail.com> wrote:
>
> Surely not intended. Put it on the bug list.
>
> Henry Rich
>
> On 12/29/2017 6:06 PM, Louis de Forcrand wrote:
>> On the Indeterminate vocabulary page of the dictionary it is written
>>
>> The only ways to create _. are as follows:
>> direct entry of _.
>> ".
>> 3!:n
>> DLL call (database, LAPACK, etc.)
>>
>> and
>>
>> Primitives on arguments not containing _. signal NaN error instead of producing _. .
>>
>> yet (in j64-805 on macOS 10.10.5)
>>
>> 2 7 p.1e308j_
>> _.j_
>>
>> This is very dangerous, as comparison with _. seems to yield _. and it also seems that control structures treat _. as false instead of signalling an error (which is in my opinion a very bad idea).
>> Are both these behaviours intended?
>>
>> Thanks,
>> Louis
>>
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>
>
> ---
> This email has been checked for viruses by AVG.
> http://www.avg.com
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list