"But in most languages print+string is mainly used in situations where
quotes are noise, like user-directed output or printing text to a file.
(exlangs. c, lisp, java, python, javascript...)"

-that's a good point...

On 26 September 2016 at 15:56, Fábio Cardeal <[email protected]> wrote:

> No prob (and sorry for the lame joke), I think that's how it works in R?
> But in most languages print+string is mainly used in situations where
> quotes are noise, like user-directed output or printing text to a file.
> (exlangs. c, lisp, java, python, javascript...)
> That is just a domain+tradition thing. I am actually curious to see what
> languages do differently now... to the google machine!
>
> Em segunda-feira, 26 de setembro de 2016 10:25:00 UTC-3, MLicer escreveu:
>>
>> Thanks. I can also use typeof(), i just somehow assumed that strings
>> would print as "strings" by default...
>>
>> Cheers!
>>
>> On 26 September 2016 at 15:17, Fábio Cardeal <[email protected]> wrote:
>>
>>> "Any reason?"
>>> "None that I can think of..."
>>> "But you can use *show *if you need 'em"
>>> "You'll need to put the newline yourself after it, tho."
>>> "there is also* display*, *@show*... Take a look here:
>>> http://docs.julialang.org/en/release-0.5/stdlib/io-network/#text-i-o";
>>> ""
>>> "Good luck!"
>>>
>>> if need 'em"
>>>
>>> Em segunda-feira, 26 de setembro de 2016 09:18:26 UTC-3, MLicer escreveu:
>>>>
>>>> Dear all,
>>>>
>>>> REPL prints strings enclosed in double quotation marks, like so:
>>>>
>>>> "9999.0"
>>>>
>>>> Is there any reason why println() in a script prints strings *without*
>>>> double quotation marks, like so:
>>>>
>>>> 9999.0
>>>>
>>>> , where 9999.0 is actually "9999.0"? I just spent a good deal of time
>>>> debugging my code due to this property without realizing i am actually
>>>> comparing *floats* to *strings...*
>>>>
>>>> Best regards!
>>>>
>>>
>>

Reply via email to