[erlang-patches] patch for better record syntax.
YAMASHINA Hio
hio@REDACTED
Thu Jun 14 15:22:09 CEST 2007
Hi, all.
In addition to previous,
this one extends another syntax,
``Data#type1.field1#type2{ field2 = value2 }.''
Regards.
On Tue, 12 Jun 2007 18:27:53 +0900
YAMASHINA Hio <hio@REDACTED> wrote:
>
> Hi, all.
>
> When we today want to extract a value which lies deep in a complex
> object, we have to say like:
> ``((Data#type1.field1)#type2.field2)#type3.field3''
> but it looks ugly.
>
> I suggest more straightforward syntax:
> ``Data#type1.field1#type2.field2#type3.field3.''
>
> Attached patch implements this.
>
>
> Regards.
>
> --
> YAMASHINA Hio <hio@REDACTED>
>
--
YAMASHINA Hio <hio@REDACTED>
http://fleur.hio.jp/erlang/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: record2.patch
Type: application/octet-stream
Size: 738 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-patches/attachments/20070614/3c321bc5/attachment.obj>
More information about the erlang-patches
mailing list