Is it common to doc arbitrary numbers?

I can’t see much use for documenting things like that either. We could 
either throw an error in @doc if you try to document a number or change the 
parser to ignore cases such as that. I’d suspect it would be simpler to fix 
up @doc rather than the parser.

— Mike
​
On Saturday, 10 October 2015 18:18:06 UTC+2, Isaiah wrote:
>
> I agree with MDC Francis that this is kind of odd. Is it common to doc 
> arbitrary numbers? Supporting this isnt necessary to doc MathConsts...
>
> (it also didn't seem to work properly for ints or floats when I tried -- 
> the doc was added to meta, but help didn't seem to find it).
> On Oct 10, 2015 11:50 AM, "Michael Hatherly" <[email protected] 
> <javascript:>> wrote:
>
>> If you want to disable the automatic @doc then you can append a ; to the 
>> string or nest the expressions in a begin ... end block:
>>
>> "hello";
>> 3.142
>>
>> begin
>>     "hello"
>>     3.142
>> end
>>
>> — Mike
>> ​
>>
>>
>> On Friday, 9 October 2015 22:02:37 UTC+2, Michael Francis wrote:
>>>
>>> Julia 0.4 rc4 
>>>
>>> I get the following unexpected (to me) behavior - 
>>>
>>> julia> parse( "\"hello\"\n3.142" )
>>> :(@doc "hello" 3.142)
>>>
>>> is this intentional ? 
>>>
>>>

Reply via email to