Erlang Mailing Lists

Author Message

<  Erlang patches mailing list  ~  patch for better record syntax.

Guest
Posted: Tue Jun 12, 2007 9:30 am Reply with quote
Guest
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@hio.jp>


Post recived from mailinglist
Guest
Posted: Thu Jun 14, 2007 1:24 pm Reply with quote
Guest
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@hio.jp> 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@hio.jp>
>


--
YAMASHINA Hio <hio@hio.jp>
http://fleur.hio.jp/erlang/


Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum