[Yarv-devel] backtrace format
Vincent Isambart
vincent.isambart at gmail.com
Fri Jul 29 05:26:36 EDT 2005
Hi,
> What do you think about other points? YARV should make ruby's backtrace
> notation?
I think showing that we are in a block may be a good thing, but I am
not sure about the 'b@' notation. I think simply putting "block in "
would be better :-). In this mail you did explain what 'b@' meant but
not everyone will guess at least at first sight.
For the <main> thing, I do not know but it's true that you need to
reference the top level by a name, especially for the "block in". But
maybe "<top level>" would be better ;-).
For the (*) line, I think it's better without it. I am not even sure
why ruby puts it...
So with my thoughts it gives us: (I also moved the ` but I'm not sure
about that)
../test.rb:19:in `raise'
../test.rb:19:in block in `<top level>'
../test.rb:13:in block in `m'
../test.rb:12:in `each'
../test.rb:12:in `map'
../test.rb:12:in `m'
../test.rb:18:in `<top level>'
I think it looks slightly better for a programmer than the ruby one...
Maybe "`<top level>'" should be just "top level" or "<top level>"
(without the `')...
The only problem is if some programs use the content returned by the
backtrace function, but I do not think it's a big problem.
What do you think?
But you should also maybe ask Matz, just to be sure he agrees with
changing the backtrace ;-).
Cheers,
Vincent
More information about the Yarv-devel
mailing list