From: Chad Perrin Date: 2009-02-26T08:04:14+09:00 Subject: Re: Nexus Programming Language --YkJPYEFdoxh/AXLE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Feb 26, 2009 at 05:18:24AM +0900, Sebastian Hungerecker wrote: > Chad Perrin wrote: > > I'm leaning more toward =3D being used for both, and some other signifi= er > > determining how the expression should be evaluated. >=20 > What should that other signifier be? I guess you could say that assignmen= t has=20 > no value (instead of returning the assigned value as it usually does) and= =20 > then interpret =3D as checking for equality when it's used in a place whe= re a=20 > (boolean) value is expected and as assignment when it's not. But I imagin= e=20 > that could become confusing as well. Also it'd make it impossible to do= =20 > things like "while item =3D get_item" (which may or may not be a good thi= ng=20 > depending on your point of view, of course). I'm not sure about the specifics of how I'd want to set up the syntax, but I don't see why the potential problems you bring up can't be worked around. Hell, just adding "let" to the assignment operation could clear that up -- though I'm not convinced that's the best way to do it, because I'm not sure how much I care about the addition of an additional syntactic element there. while let item =3D get_item --=20 Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ] Quoth Nat Torkington, on Perl internals: ". . . an interconnected mass of livers and pancreas and lungs and little sharp pointy things and the occasional exploding kidney." --YkJPYEFdoxh/AXLE Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.10 (FreeBSD) iEYEARECAAYFAkmlzhgACgkQ9mn/Pj01uKXQzwCdHFvLBvdwyU+BXF6SoqxTnnQX f1gAn18FxbZMa8HaMc2eCOe8hu3bJlwR =NIEH -----END PGP SIGNATURE----- --YkJPYEFdoxh/AXLE--