Re: [MacRuby-devel] book idea - "making it look like Ruby"

2011-02-12 Thread Caio Chassot
Same here. And while I'm all too curious about the case conversion implementations, I'm in agreement it'd be a bad fit for the official distribution, and a major annoyance with clashing styles in shared code. Sent from my iPhone On 12 Feb 2011, at 23:06, Matt Aimonetti wrote: > It is not,

Re: [MacRuby-devel] book idea - "making it look like Ruby"

2011-02-12 Thread Rich Morin
Robert Payne wrote: > Is it extremely bad practice to use Camel Case in Ruby? > At least for MacRuby? I have been mostly because I'm > an Objective-C developer and it's what I'm used to as > well as all of the Apple API are Camel Case and I didn't > want to make the code spaghetti between the two

Re: [MacRuby-devel] book idea - "making it look like Ruby"

2011-02-12 Thread Matt Aimonetti
It is not, we are just talking about conventions here. Personally I like to use both casing approaches so I can see the difference between obj-c APIs and Ruby's. - Matt Sent from my iPhone On Feb 12, 2011, at 16:44, Robert Payne wrote: > Is it extremely bad practice to use Camel Case in Rub

Re: [MacRuby-devel] book idea - "making it look like Ruby"

2011-02-12 Thread Robert Payne
Is it extremely bad practice to use Camel Case in Ruby? At least for MacRuby? I have been mostly because I'm an Objective-C developer and it's what I'm used to as well as all of the Apple API are Camel Case and I didn't want to make the code spaghetti between the two. -Robert On 13/02/2011, at

Re: [MacRuby-devel] book idea - "making it look like Ruby"

2011-02-12 Thread Matt Aimonetti
Ok so I will play the mean team member and tell you that we are seriously not considering supporting something like that as part of the base implementation. Now that doesn't mean that you guys can't create a gem to support that. - Matt Sent from my iPhone On Feb 12, 2011, at 16:35, Rich Morin

Re: [MacRuby-devel] book idea - "making it look like Ruby"

2011-02-12 Thread Rich Morin
At 11:01 AM +1300 2/13/11, Arthur Gunn wrote: >> Ruby is extremely flexible. I'm quite sure that some >> metaprogramming could be used to prototype something >> for experimentation. > > For the sake of experimentation then, here's some ruby > code that does that: https://gist.github.com/824163 >

Re: [MacRuby-devel] book idea - "making it look like Ruby"

2011-02-12 Thread Arthur Gunn
> Ruby is extremely flexible.  I'm quite sure that some > metaprogramming  could be used to prototype something > for experimentation. For the sake of experimentation then, here's some ruby code that does that: https://gist.github.com/824163 I don't think that implementing this in macruby wou

[MacRuby-devel] sprintf, String#%, stringWithFormat, NSLog and friends

2011-02-12 Thread Caio Chassot
So everything in ruby is an object, which means that when using format strings with Objective-C methods like String+stringWithFormat and NSLog, the only formatter that makes sense is "%@". Other formatters generally give unexpected results. E.g. "%d" will print the value of the pointer to the nu

Re: [MacRuby-devel] MacRuby classes delete/overwrite Objective-C classes?

2011-02-12 Thread Caio Chassot
On 2011-02-12, at 04:40 , Caio Chassot wrote: > > On 2011-02-12, at 01:59 , Robert Payne wrote: >> >> The behavior I'm expecting is to see "Hello world" in the console but it >> seems as if the entire Objective-C method was deleted. I don't have a method >> in the Ruby class called helloWorld.