Re: How to create "def method(item)= (value)" ?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Iñaki Baz Castillo wrote:

|
| Yes, that exactly what I do, but I don't like it, since it's not
| intuitive. In fact I call the method "set_param(name, value)". But it
| makes the code look like Java.. brrrrr.... XD

Not commenting on the Java part (the naming in Java is usually rather
well done, IMO), but I agree, the solution isn't all too elegant because
of it's lack of intuitive assignment.

Usually, I use something like that, when I am too lazy to create an
optionhash based solution.

*adds that to TODO list for a current project*

|
| Interesting, and thanks for the useful link. :)

You are welcome. :)

- --
Phillip Gawlowski
Twitter: twitter.com/cynicalryan
Blog: http://justarubyist.blogspot.com

Do you know why the fairy sits at the top of the Xmas tree ?

~ One year, Santa had one tree left over after giving everybody one, and
when one of his fairy helpers asked what she should do with it, he told her.

~ That`s why.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgYcJsACgkQbtAgaoJTgL+HaACeMiqRAOW+QZob0dVSghldpG/Z
b7QAoJpDBoN1X8WgA9pxjUwYu1RbJHf3
=DZOH
-----END PGP SIGNATURE-----

.



Relevant Pages

  • Re: Declaring local variables inside loop
    ... You need GnuPG to verify this message ... Are you perhaps thinking a bit too much of lists and Lisp/Scheme. ... of utilising java correctly. ... I do have some interest in Lisp, but I have never used it. ...
    (comp.lang.java.programmer)
  • Re: iceweasel and javascripts
    ... since JAVA has nothing to do with JavaScript. ... GnuPG Public Key: 4DD0A9A6 Keyserver: subkeys.pgp.net ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: [opensuse] Java toolkit on Linux
    ... Maura Monville wrote: ... It is stated to be OS independent as it was implemented in Java. ... and import the files into a project in these IDEs a lot of the ... Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org ...
    (SuSE)
  • Re: [opensuse] JAVA_HOME and cron scripts
    ... for cron jobs? ... Something to watch out for is the java 1.4.x version from 9.3 seems to ... Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org ...
    (SuSE)