[Poll] Optional keywords when looking at methods
Brian Rice
water at tunes.org
Wed Dec 7 12:39:11 PST 2005
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
I've just pushed a patch to main which prints all of a method's
optional keywords when disassemble is called on it.
I want to make optionals more easily visible, like printing them in
the REPL results. Right now we just print brackets around the
selector, like so:
[] -> anonymous method / block
[size] -> method named "size"
Optionals would look like this:
[&foo:] -> anonymous method / block optionally taking a "foo" keyword
[new &capacity:] -> method named "new" optionally taking a "capacity"
keyword
My question is: does this look right? Also, are there other things we
should show in method printouts, such as the number of inputs for an
anonymous block (you can infer them for named methods)?
Showing full source is cumbersome, and belongs in a proper UI that
isn't ready yet.
- --
- -Brian
http://tunes.org/~water/brice.vcf
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
iD8DBQFDl0h0PVkAvLW1zf4RAln6AJ0S5ZPeV5iR/1AqceKf6er2BpkDZwCfUEYZ
5uGFW1KDUNWWrCmWX303pDk=
=9Hd5
-----END PGP SIGNATURE-----
More information about the Slate
mailing list