Subject:
[ruby-ffi] Re: ffi_lib and symbol/string usage?
From:
Jon
Date:
11/15/09 4:13 PM
To:
ruby-ffi@googlegroups.com


> > I've updated my examples on the wiki to use only String's, but am wondering if FFI core should be agnostic for the ffi_lib arg?
> 
> I have no preference, but is there really any style reason to use
> symbols over strings or vice-versa for this?

Nope, other than just liking the way symbols look.

Probably as interesting as a discussion trying to get Windows developers to ditch their editor and move gVim.

> 
> Well, compared to the cost of a dlopen() call, the cost of symbol vs
> string for the ffi_lib arg isn't even a rounding error.  Its
> equivalent to a butterfly flapping its wings in a hurricane.

Hehe.

Jon