lua-users home
lua-l archive

Re: ? assignments are not expressions ?

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Lua should have had a different operator for assignment anyway (IMO).
> Decades of suffering C programmers have already proven that this was a
> bad design choice. Personally, I've always preferred Pascal's assignment
> operator.
I agree with you here. I like the := for assignment and = for equality
tests much better. You can't mistype = as := by just leaving your finger
on the key for a fraction of a second too long for starters....
- --
Michael T. Richter
"Be seeing you."
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.3
iQA/AwUBOsDqwbTM3QkE7U/oEQKWNgCgvv7GxND+GDSFf66mQikemPMbmhgAoKS5
2AD/m1q7qu/pwZaXhPwE+LtZ
=2RPA
-----END PGP SIGNATURE-----

AltStyle によって変換されたページ (->オリジナル) /