General

Profile

jwille (Jens Wille)

  • Login: jwille
  • Email: ww@blackwinter.de
  • Registered on: 11/17/2008
  • Last sign in: 02/28/2019

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

04/08/2016

09:16 AM Ruby Feature #12262: Anti-loop
You can make your last example work with `loop` by just adding a `break` at the end of the loop body. I don't think that warrants a new method. jwille (Jens Wille)

01/05/2016

12:25 PM Ruby Bug #11909: io.popen problem in 2.2 and over
Associated libxml-ruby issue: [#115](https://github.com/xml4r/libxml-ruby/issues/115).
Related libxml-ruby issue: [#109](https://github.com/xml4r/libxml-ruby/issues/109) (executing `test.rb` via `IO.popen` exhibits the same problem).
jwille (Jens Wille)
12:15 PM Ruby Bug #11909: io.popen problem in 2.2 and over
I don't have time to investigate further right now, but the problem is that the output of `prova5.rb` gets buffered. The `find` and everything else executes just fine. You can work around this problem by adding `$stdout.sync = true` at t... jwille (Jens Wille)

09/27/2013

08:15 PM Ruby Feature #8948: Frozen regex
> but it would be difficult to tell which regexes are intended to be the same
i'm not sure i understand. how is
~~~ruby
def r1; /ab/f; end
def r2; /ab/f; end
~~~
different from
~~~ruby
def s1; 'ab'f; end
def s2; 'ab'f; e...
jwille (Jens Wille)

09/25/2013

11:46 PM Ruby Feature #8948: Frozen regex
besides regexps being frozen, there might still be a use case for regexp literals that would only be allocated once:
~~~ruby
def r1; /ab/; end; r1.object_id #=> 70043421664620
def r2; /ab/; end; r2.object_id #=> 70043421398060
...
jwille (Jens Wille)

09/20/2013

05:48 PM Ruby Feature #8929: CSV.foreach(filename) without block returns failing Enumerator
=begin
why not simply return an Enumerator from `foreach`?
class CSV
def self.foreach(path, options = Hash.new, &block)
if block_given?
open(path, options) do |csv|
csv.each(&block)
end
...
jwille (Jens Wille)

06/25/2012

09:29 PM Ruby Feature #6641: Hash.auto constructor
Eregon (Benoit Daloze) [2012-06-25 12:33]:
> But at the same time, this is clearly a specialization of
> Hash.new with a block, which loses some flexibility (you can not
> use the key for example).
why not? you can yield the key...
jwille (Jens Wille)

11/18/2011

10:14 PM Ruby Bug #5591: Windows bug when using "shortcut" syntax with output redirection
Luis, that's awesome. I was literally saying to myself the RubyInstaller guys *must* be providing some easy way to do this, I just wasn't able to find anything from the homepage. So thanks! I might give it a try some time. Though I won't... jwille (Jens Wille)
05:49 PM Ruby Bug #5591: Windows bug when using "shortcut" syntax with output redirection
Ok, thank you very much! jwille (Jens Wille)
05:06 PM Ruby Bug #5591: Windows bug when using "shortcut" syntax with output redirection
Unfortunately, I find myself unable to compile Ruby on Windows. I'm not familiar with developing on that platform and all the instructions I could find were either outdated or rather complicated. So I simply trust that it's fixed by r336... jwille (Jens Wille)

Also available in: Atom