[erlang-questions] Built-in io:format syntax for printing lists?

Andrew Pennebaker <>
Tue Mar 15 22:10:04 CET 2016


:P

On Friday, March 11, 2016, Jesper Louis Andersen <
> wrote:

> This looks like common lisp. In CL, ~a is the "print anything" marker:
>
> http://www.lispworks.com/documentation/lw50/CLHS/Body/22_cda.htm
>
> i.e., FORMAT control-strings use ~a for "Aesthetic" printing. Perhaps this
> is messed up with the ~p and ~w Sean mentions.
>
> On Thu, Mar 10, 2016 at 9:40 PM, Sean Cribbs <
> <javascript:_e(%7B%7D,'cvml','');>> wrote:
>
>> I'm pretty sure "~w" or "~p" is what you're looking for. I believe the
>> former will prevent printing the list as a string.
>>
>> On Thu, Mar 10, 2016 at 2:36 PM, Andrew Pennebaker <
>> 
>> <javascript:_e(%7B%7D,'cvml','');>> wrote:
>>
>>> Could Erlang please offer a builtin way to print lists, e.g. for
>>> debugging purposes?
>>>
>>> Related: I swear there used to be "~a" for printing just about anything,
>>> but it appears to have been removed, no?
>>>
>>> --
>>> Cheers,
>>> Andrew
>>>
>>> _______________________________________________
>>> erlang-questions mailing list
>>> 
>>> <javascript:_e(%7B%7D,'cvml','');>
>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>
>>>
>>
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> <javascript:_e(%7B%7D,'cvml','');>
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
>>
>
>
> --
> J.
>


-- 
Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20160315/4bb8304f/attachment.html>


More information about the erlang-questions mailing list