On the benefits of reflection

Massimo Del Zotto <[email protected]> Tue, 19 Mar 2013 18:35:06 +0100
Newsgroups gmane.games.devel.sweng
Message-ID <CALWCaobpv5ixPW0tGiKSz_8uPsMPd49CnMJRo6j6Syb-WFxUyg@mail.gmail.com>
--===============1478188058==
Content-Type: multipart/alternative; boundary=e89a8ff1c8aab9e72904d84a8622

--e89a8ff1c8aab9e72904d84a8622
Content-Type: text/plain; charset=ISO-8859-1

Hello,
this question spawned from the recent discussion on reflection. I guessed
it was better to open an independent discussion instead of hijacking the
thread.

2013/3/19 Douglas Cox <[email protected]>

> So if you do start wandering into the land of making your own language for
> just reflection, you might see what other benefits you can get from doing
> more in it than just that.
>

I'd be interested in knowing more about doing the other thing around.
I have a small little language I've been using for a while and I've been
fairly happy with it. So far, the language itself does not have reflective
constructs (nor I plan to add them) but I use reflection internally mainly
to simulate duck typing.
So far, I haven't well understood the benefits of reflection. I had seen
some examples in ObjC but they didn't really appeared to be buying much
from me. I know reflection is there in a Java package, but I couldn't quite
figure out the whole picture.

Could you please elaborate on the benefits of using reflection? Please be
specific on whatever you're talking about reflection from the native core
or reflection from the language.

Thank you
Massimo

--e89a8ff1c8aab9e72904d84a8622
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Hello,<div>this question spawned from the recent discussion on reflection. =
I guessed it was better to open an=A0independent=A0discussion instead of hi=
jacking the thread.</div><div><br></div><div>2013/3/19 Douglas Cox=A0<span =
dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_blank">zifli=
[email protected]</a>&gt;</span><br>
<div class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204=
);border-left-style:solid;padding-left:1ex"><div dir=3D"ltr">So if you do s=
tart wandering into the land of making your own language for just reflectio=
n, you might see what other benefits you can get from doing more in it than=
 just that.</div>
</blockquote><div><br></div><div>I&#39;d be interested in knowing more abou=
t doing the other thing around.</div><div>I have a small little language I&=
#39;ve been using for a while and I&#39;ve been fairly happy with it. So fa=
r, the language itself does not have reflective constructs (nor I plan to a=
dd them) but I use reflection internally mainly to simulate duck typing.</d=
iv>
<div>So far, I haven&#39;t well understood the benefits of reflection. I ha=
d seen some examples in ObjC but they didn&#39;t really appeared to be buyi=
ng much from me. I know reflection is there in a Java package, but I couldn=
&#39;t quite figure out the whole picture.</div>
<div><br></div><div>Could you please elaborate on the benefits of using ref=
lection? Please be specific on whatever you&#39;re talking about reflection=
 from the native core or reflection from the language.</div><div><br></div>
<div>Thank you</div><div>Massimo</div><div><br></div></div></div>

--e89a8ff1c8aab9e72904d84a8622--

--===============1478188058==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Sweng-Gamedev mailing list
[email protected]
http://lists.midnightryder.com/listinfo.cgi/sweng-gamedev-midnightryder.com

--===============1478188058==--