[OT] Spaces/tabs (Was: simple display (from: GUI library for D))

"Jérôme M. Berger" jeberger at free.fr
Thu Apr 14 10:58:57 PDT 2011


spir wrote:
> Actually, I have never been pleased that func defs (1) look like func
> calls (2) have an exceptional syntax compared to other definitions. I'd
> like instead eg:
> 
>     square = function (int n) int {
>         return n * n;
>     }
> 
	That is still different from other definitions where the type comes
first. But the following would work too:

function (int n) int square = {
   return n*n;
}

	And both would be easier to parse to boot:) There are actually
languages out there with this kind of syntax.

		Jerome
-- 
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20110414/488bcd0e/attachment.pgp>


More information about the Digitalmars-d mailing list