Difference between revisions of "Talk:Pairs of identifiers"
Jump to navigation
Jump to search
("Discussion" section relocated) |
m (Minor formatting changes) |
||
Line 1: | Line 1: | ||
− | === read and show === |
+ | === <code>read</code> and <code>show</code> === |
I think the names <hask>read</hask> and <hask>show</hask> in the Prelude of Haskell98 aren't a good choice |
I think the names <hask>read</hask> and <hask>show</hask> in the Prelude of Haskell98 aren't a good choice |
||
Line 7: | Line 7: | ||
The choice for the Modula-3 libraries (<hask>Lex</hask> and <hask>Fmt</hask>) seems to be more suitable. |
The choice for the Modula-3 libraries (<hask>Lex</hask> and <hask>Fmt</hask>) seems to be more suitable. |
||
− | -- HenningThielemann |
+ | -- [[User:HenningThielemann|Henning Thielemann]] |
=== trees === |
=== trees === |
||
Line 13: | Line 13: | ||
I had a nice discussion the other day with someone about the right name for tree nodes and leaves. The constructors I'm using as a result are <hask>Branch</hask> and <hask>Leaf</hask>. Anyone feel differently? |
I had a nice discussion the other day with someone about the right name for tree nodes and leaves. The constructors I'm using as a result are <hask>Branch</hask> and <hask>Leaf</hask>. Anyone feel differently? |
||
− | -- BartMassey |
+ | -- [[User:BartMassey|Bart Massey]] |
=== Del === |
=== Del === |
||
− | I think |
+ | I think <code>del</code> is more natural pair for <code>add</code>. |
− | -- Evgeny Tarasov |
+ | -- [[User:EvgenyTarasov|Evgeny Tarasov]] |
Latest revision as of 22:52, 18 April 2021
read
and show
I think the names read
and show
in the Prelude of Haskell98 aren't a good choice
because the functions can be considered as natural pair
but this isn't reflected by their names.
Even more read
and show
sound like some I/O operations which they are not.
The choice for the Modula-3 libraries (Lex
and Fmt
) seems to be more suitable.
trees
I had a nice discussion the other day with someone about the right name for tree nodes and leaves. The constructors I'm using as a result are Branch
and Leaf
. Anyone feel differently?
-- Bart Massey
Del
I think del
is more natural pair for add
.